PKGBUILDs/extra/courier-maildrop/PKGBUILD
2009-10-09 21:23:22 -05:00

38 lines
1.2 KiB
Bash

# $Id: PKGBUILD 53177 2009-09-26 10:33:43Z allan $
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Tobias Kieslich <tobias@justdreams.de>
pkgname=courier-maildrop
_srcname=maildrop
pkgver=2.0.4
pkgrel=5
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.60.5-2' 'fam' 'pcre' 'db>=4.7')
makedepends=()
conflicts=('courier-mta')
options=(!libtool)
source=(http://downloads.sourceforge.net/project/courier/${_srcname}/${pkgver}/${_srcname}-${pkgver}.tar.bz2)
md5sums=('6a760efe429716ab0be67a1ddc554ed7')
build() {
cd ${srcdir}/${_srcname}-${pkgver}
./configure --prefix=/usr \
--sysconfdir=/etc/courier \
--localstatedir=/var \
--with-db=db \
--with-devel
make LDFLAGS+=-lstdc++ || return 1
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 {} \;
}