blob: ddf980fa3df4e7b375c9ff40ce1b4e22e8858be7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
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"
|