aboutsummaryrefslogtreecommitdiffstats
path: root/main/procmail/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-10-13 08:24:19 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-10-13 08:24:19 +0000
commitfc3460fd2a47df414548426907a856874a076371 (patch)
tree59bf5d687f38a3d2940e945fadd88ef095951e1f /main/procmail/APKBUILD
parentbf82e002330b7b1523e8e6bbb99ba09ec44d201b (diff)
downloadaports-fc3460fd2a47df414548426907a856874a076371.tar.bz2
aports-fc3460fd2a47df414548426907a856874a076371.tar.xz
main/procmail: move to main
Diffstat (limited to 'main/procmail/APKBUILD')
-rw-r--r--main/procmail/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/procmail/APKBUILD b/main/procmail/APKBUILD
new file mode 100644
index 0000000000..ddf980fa3d
--- /dev/null
+++ b/main/procmail/APKBUILD
@@ -0,0 +1,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"