aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-16 18:39:45 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-16 18:39:45 +0000
commit8bd4249e988a560cb63b28238f4ed10f46ee9a23 (patch)
treee93706282d6c561f551365eae38a433fd4dde3e1 /main
parent7e031165c44aef6d3043622a0f976bc8bf38d202 (diff)
downloadaports-8bd4249e988a560cb63b28238f4ed10f46ee9a23.tar.bz2
aports-8bd4249e988a560cb63b28238f4ed10f46ee9a23.tar.xz
main/lha: fix musl build
Diffstat (limited to 'main')
-rw-r--r--main/lha/APKBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/main/lha/APKBUILD b/main/lha/APKBUILD
index 22a71502c..d408b5e05 100644
--- a/main/lha/APKBUILD
+++ b/main/lha/APKBUILD
@@ -12,9 +12,14 @@ makedepends=""
install=
source="http://osdn.dl.sourceforge.jp/lha/22231/$pkgname-$pkgver-ac20050924p1.tar.gz"
-build ()
-{
- cd $srcdir/$pkgname-$pkgver-ac20050924p1
+_builddir="$srcdir/$pkgname-$pkgver-ac20050924p1"
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
+build() {
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -24,6 +29,10 @@ build ()
--infodir=/usr/share/info \
|| return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make "DESTDIR=$pkgdir" install
#install -D -m755 $srcdir/lha $pkgdir/usr/bin/lha
}