aboutsummaryrefslogtreecommitdiffstats
path: root/main/ngrep/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/ngrep/APKBUILD')
-rw-r--r--main/ngrep/APKBUILD19
1 files changed, 9 insertions, 10 deletions
diff --git a/main/ngrep/APKBUILD b/main/ngrep/APKBUILD
index 61681ce33e..2e29f0b617 100644
--- a/main/ngrep/APKBUILD
+++ b/main/ngrep/APKBUILD
@@ -15,21 +15,18 @@ subpackages="$pkgname-dbg $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/ngrep/$pkgname-$pkgver.tar.bz2
no-strip.patch"
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
+ cd "$builddir"
+ default_prepare || return 1
update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ update_config_guess || return 1
autoreconf -vif
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -40,10 +37,12 @@ build() {
|| return 1
make || return 1
}
+
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE
+ install -Dm644 LICENSE.txt \
+ "$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE || return 1
}
md5sums="bc8150331601f3b869549c94866b4f1c ngrep-1.45.tar.bz2