aboutsummaryrefslogtreecommitdiffstats
path: root/main/smokeping/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-29 16:26:57 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-03-29 16:26:57 +0200
commit55062fd186e0a4143ae47f7f10af8035e4bae5c1 (patch)
treedc82e7b575025752b7759208a5b939d17718d290 /main/smokeping/APKBUILD
parentdd2dde38549790e7fcdd865d5df76ab3a09a9f18 (diff)
downloadaports-55062fd186e0a4143ae47f7f10af8035e4bae5c1.tar.bz2
aports-55062fd186e0a4143ae47f7f10af8035e4bae5c1.tar.xz
main/smokeping: modernize abuild
Diffstat (limited to 'main/smokeping/APKBUILD')
-rw-r--r--main/smokeping/APKBUILD15
1 files changed, 5 insertions, 10 deletions
diff --git a/main/smokeping/APKBUILD b/main/smokeping/APKBUILD
index 13045f798b..5f63c7afd4 100644
--- a/main/smokeping/APKBUILD
+++ b/main/smokeping/APKBUILD
@@ -33,25 +33,20 @@ makedepends="perl-dev perl-try-tiny"
arch="noarch"
license="GPL"
subpackages="$pkgname-doc"
+builddir="$srcdir/$pkgname-$pkgver"
-_builddir="$srcdir"/$pkgname-$pkgver
_vendorlib=/usr/share/perl5/vendor_perl
prepare() {
- cd "$_builddir"
-
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare
+ cd "$builddir"
# provided by perl-snmp-session
rm -r lib/BER.pm lib/SNMP_Session.pm lib/SNMP_util.pm
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -67,7 +62,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
for i in basepage.html config smokemail smokeping_secrets tmail; do