aboutsummaryrefslogtreecommitdiffstats
path: root/main/xtables-addons/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/xtables-addons/APKBUILD')
-rw-r--r--main/xtables-addons/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/xtables-addons/APKBUILD b/main/xtables-addons/APKBUILD
index 91c4c96a76..90c30904f2 100644
--- a/main/xtables-addons/APKBUILD
+++ b/main/xtables-addons/APKBUILD
@@ -12,8 +12,15 @@ install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz"
+_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 builddir= DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}