aboutsummaryrefslogtreecommitdiffstats
path: root/main/pth/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-29 16:03:35 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-29 16:03:35 +0000
commitf6723fe78a8b7ad141c619908bcd809abe43b78d (patch)
tree109de25c6ec5f7695e45255ad6d8d6f5e203ef86 /main/pth/APKBUILD
parentcde4c288fb31f74d2401cef0558ab3c56ada33ca (diff)
downloadaports-f6723fe78a8b7ad141c619908bcd809abe43b78d.tar.bz2
aports-f6723fe78a8b7ad141c619908bcd809abe43b78d.tar.xz
main/[various]: update config.sub
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
}