aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnfnetlink/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/libnfnetlink/APKBUILD')
-rw-r--r--main/libnfnetlink/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/libnfnetlink/APKBUILD b/main/libnfnetlink/APKBUILD
index 3931f27c17..41641eae1b 100644
--- a/main/libnfnetlink/APKBUILD
+++ b/main/libnfnetlink/APKBUILD
@@ -12,8 +12,15 @@ makedepends=""
subpackages="$pkgname-dev"
source="http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-$pkgver.tar.bz2"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
./configure \
--build=$CBUILD \
@@ -27,7 +34,7 @@ build() {
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la
}