# Contributor: Carlo Landmeter # Maintainer: pkgname=procmail pkgver=3.22 pkgrel=0 pkgdesc="Highly configurable auto mail processing" url="http://www.procmail.org" arch="all" license="GPL" depends="" depends_dev="" makedepends="$depends_dev" install="" subpackages="$pkgname-doc" source="ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/procmail-$pkgver.tar.gz procmail-3.22-getline.patch" _builddir="$srcdir"/procmail-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" yes n | make CFLAGS0="${CFLAGS} ${LDFLAGS}" \ LOCKINGTEST="/tmp ." || return 1 } package() { cd "$_builddir" make BASENAME=${pkgdir}/usr MANDIR=${pkgdir}/usr/share/man \ install || return 1 rm -f "$pkgdir"/usr/lib/*.la install -D -m644 Artistic ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE install -d -m755 ${pkgdir}/usr/share/doc/${pkgname}/examples install -m644 examples/* ${pkgdir}/usr/share/doc/${pkgname}/examples/ } md5sums="1678ea99b973eb77eda4ecf6acae53f1 procmail-3.22.tar.gz cf8e5d4854050ab0c836e07406a3dfa9 procmail-3.22-getline.patch"