aboutsummaryrefslogtreecommitdiffstats
path: root/main/pth/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/pth/APKBUILD')
-rw-r--r--main/pth/APKBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/main/pth/APKBUILD b/main/pth/APKBUILD
index 5ce8302521..58e6611412 100644
--- a/main/pth/APKBUILD
+++ b/main/pth/APKBUILD
@@ -14,14 +14,20 @@ source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
pth-2.0.6-sigstack.patch
"
-build () {
- cd "$srcdir"/$pkgname-$pkgver
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
for i in ../*.patch; do
msg "Applying $i..."
patch -p1 < $i || return 1
done
+}
+build() {
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,7 +41,7 @@ build () {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install
rm "$pkgdir"/usr/lib/*.la
}