# Maintainer: Bartłomiej Piotrowski pkgname=abook pkgver=0.6.0_pre2 _ver=${pkgver/_pre/pre} pkgrel=2 pkgdesc="Text-based addressbook designed for use with Mutt" url="http://abook.sourceforge.net" license="GPL2" arch="all" makedepends="ncurses-dev readline-dev" subpackages="$pkgname-doc $pkgname-lang" source="http://$pkgname.sourceforge.net/devel/$pkgname-${_ver}.tar.gz vcard-compat.patch" _builddir=$srcdir/$pkgname-$_ver prepare() { cd "$_builddir" patch -Np1 -i "$srcdir"/vcard-compat.patch } build() { cd "$_builddir" ./configure --prefix=/usr --mandir=/usr/share/man || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/charset.alias } md5sums="1e4a7210b3507db7b3d47ee7a2457934 abook-0.6.0pre2.tar.gz c7c4972eab913483198d86697ecbbaa1 vcard-compat.patch" sha256sums="59d444504109dd96816e003b3023175981ae179af479349c34fa70bc12f6d385 abook-0.6.0pre2.tar.gz 11ecc05519021fdf08da943fe2ea81e68abbc67e909e16abdc02cd639de5b5cc vcard-compat.patch" sha512sums="d1bc437981964a5dd873b12458833c60306d37b36904a04b072cefe7501175933dd7817ca51f8634bbd6722f79f768b39e00b68d0699086d5efaf28d0cbdf1ed abook-0.6.0pre2.tar.gz e51311c10f9bfe6e5c8feb65bf66856719d286aa497aad5e7ace7e5b81c5d36aea419e28f29eb24b4d9bd1b05a403914b71eab7d3e46316f6766ddae4237117e vcard-compat.patch"