diff options
-rw-r--r-- | main/smokeping/APKBUILD | 15 |
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 |