# Maintainer: Heenry78 <henry78@gmx.at> # Contributor: ngoonee <ngoonee.talk@gmail.com> # Contributor: Marco A Rojas <marquicus@gmail.com> pkgname=evolution-mapi pkgver=3.6.2 _gnomever=3.6 pkgrel=1 pkgdesc="MAPI plugin for evolution." arch=('i686' 'x86_64') url="http://www.gnome.org" license=('GPL3') depends=('evolution>=3.6.2' 'openchange>=1.0-5') makedepends=('intltool') options=(!makeflags) source=(http://ftp.gnome.org/pub/gnome/sources/evolution-mapi/$_gnomever/${pkgname}-${pkgver}.tar.xz) _prefix="/opt/samba4" md5sums=('4b9eb953e499fca4e1bd7dbd9bf5c0c9') build() { cd ${srcdir}/${pkgname}-${pkgver} export PKG_CONFIG_PATH=${_prefix}/samba/lib/pkgconfig:${_prefix}/lib/pkgconfig export CFLAGS="-DHAVE_MEMCTX_ON_CAST_SPROPVALUE -DHAVE_MEMCTX_ON_CAST_MAPI_SPROPVALUE ${CFLAGS}" ./configure --prefix=${_prefix} unset CFLAGS make || return 1 } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR="$pkgdir/" install }