# $Id: PKGBUILD 57086 2009-10-31 13:13:36Z allan $ # Maintainer: Sven-Hendrik Haase # Contributor: tobias # Contributor: Tobias Kieslich pkgname=courier-maildrop _srcname=maildrop pkgver=2.5.4 pkgrel=3 pkgdesc="mail delivery agent - procmail like but nicer syntax" arch=('i686' 'x86_64') license=('GPL2') url="http://courier-mta.org/maildrop/" depends=('courier-authlib>=0.63.0' 'gamin' 'pcre' 'gdbm') conflicts=('courier-mta') options=(!libtool) source=(http://downloads.sourceforge.net/project/courier/${_srcname}/${pkgver}/${_srcname}-${pkgver}.tar.bz2) md5sums=('5770345cdceae28bdc24809e7adb3426') build() { cd ${srcdir}/${_srcname}-${pkgver} ./configure --prefix=/usr \ --sysconfdir=/etc/courier \ --localstatedir=/var \ --mandir=/usr/share/man \ --with-db=gdbm \ --with-devel make LDFLAGS+=-lstdc++ } package() { cd ${srcdir}/${_srcname}-${pkgver} make DESTDIR=${pkgdir} install chmod u+s ${pkgdir}/usr/bin/maildrop cd ${pkgdir}/usr/share/maildrop/html for files in *; do install -Dm644 ${files} ${pkgdir}/usr/share/htmldoc/${files} done rm -rf ${pkgdir}/usr/share/maildrop # docs say we can remove .a files after make cd ${pkgdir} find ${pkgdir} -name '*\.a' -exec rm -f {} \; }