aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-12-13 09:53:29 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-12-13 09:53:29 +0000
commit35dfed2343223d7efad52fbddf923e4928a708f3 (patch)
treedc4e4439bb2364921f3e1e1931fdd04afe4b92c3
parent9d00970fe245f48016ab89c27a9dd1251a09bc0a (diff)
downloadaports-35dfed2343223d7efad52fbddf923e4928a708f3.tar.gz
aports-35dfed2343223d7efad52fbddf923e4928a708f3.tar.bz2
aports-35dfed2343223d7efad52fbddf923e4928a708f3.tar.xz
main/procmail: modernize APKBUILD
-rw-r--r--main/procmail/APKBUILD26
1 files changed, 6 insertions, 20 deletions
diff --git a/main/procmail/APKBUILD b/main/procmail/APKBUILD
index 8c561fbed8..c80894b78e 100644
--- a/main/procmail/APKBUILD
+++ b/main/procmail/APKBUILD
@@ -2,15 +2,12 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=procmail
pkgver=3.22
-pkgrel=3
+pkgrel=4
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
@@ -18,28 +15,17 @@ source="ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/procmail-$pkgv
procmail-3.23pre.patch
"
options="!check" # Has no tests
-
-_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
-}
+builddir="$srcdir"/procmail-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
make CFLAGS0="${CFLAGS}" LDFLAGS0="${LDFLAGS}" \
- LOCKINGTEST="'$srcdir' ." || return 1
+ LOCKINGTEST="'$srcdir' ."
}
package() {
- cd "$_builddir"
- make BASENAME="${pkgdir}"/usr MANDIR="${pkgdir}"/usr/share/man \
- install || return 1
+ cd "$builddir"
+ make BASENAME="${pkgdir}"/usr MANDIR="${pkgdir}"/usr/share/man install
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/