aboutsummaryrefslogtreecommitdiffstats
path: root/main/ngrep
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-13 17:41:35 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-13 17:41:35 +0000
commitac50c09a44e0f895de173b0e0475d8a68fb34d6b (patch)
treee48a6b6a7de4a19489cfdace6d7c09f343269a31 /main/ngrep
parentd5b51bc40f38a995fe88547fd4cf21d8766fb7c9 (diff)
downloadaports-ac50c09a44e0f895de173b0e0475d8a68fb34d6b.tar.bz2
aports-ac50c09a44e0f895de173b0e0475d8a68fb34d6b.tar.xz
main/ngrep: build fix aarch64
Diffstat (limited to 'main/ngrep')
-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