# Maintainer: Natanael Copa pkgname=libetpan pkgver=1.7 pkgrel=0 pkgdesc="a portable middleware for email access" url="http://www.etpan.org/" arch="all" license="custom:etpan" subpackages="$pkgname-dev $pkgname-doc" makedepends="db-dev cyrus-sasl-dev curl-dev expat-dev gnutls-dev libgcrypt-dev libgpg-error-dev autoconf automake libtool" depends= depends_dev="cyrus-sasl-dev db-dev" source="libetpan-$pkgver.tar.gz::https://github.com/dinhviethoa/libetpan/archive/$pkgver.tar.gz " prepare() { cd "$srcdir"/$pkgname-$pkgver update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done ./autogen.sh || return 1 } build () { cd "$srcdir"/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-gnutls=yes \ --with-openssl=no \ --with-gnutls \ --disable-static \ || return 1 make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install || return 1 install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/license.txt } md5sums="8336a6752c814d83366d9e3f193f5099 libetpan-1.7.tar.gz" sha256sums="47d0c049d8adcdcfd0698e9f1fcb85416b0b2f476eed1f52aae72c2883cf05b0 libetpan-1.7.tar.gz" sha512sums="b90c46f6692df7a7889be68f5712a6b6d58ef1931edb82674da2cb6690c2150c935ca782fd32c1567c31cdff629261bd1ba23921b12431d781a086729489573e libetpan-1.7.tar.gz"