diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-20 13:01:09 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-20 13:02:19 +0000 |
commit | 2702db2a9ba4bb1f2ef819ae61c791477748784f (patch) | |
tree | dc7fdfaec5296561ff80bbd973d9470b4d641cd4 /main/tar | |
parent | 5d990086ddb19bc28eb4a2d43c65f2d1bcdd739d (diff) | |
download | aports-2702db2a9ba4bb1f2ef819ae61c791477748784f.tar.bz2 aports-2702db2a9ba4bb1f2ef819ae61c791477748784f.tar.xz |
main/[various]: simple build fixes against musl (update_config_sub)
Diffstat (limited to 'main/tar')
-rw-r--r-- | main/tar/APKBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/main/tar/APKBUILD b/main/tar/APKBUILD index a9f28dbe29..1709173a28 100644 --- a/main/tar/APKBUILD +++ b/main/tar/APKBUILD @@ -13,10 +13,11 @@ source="ftp://ftp.gnu.org/gnu/tar/$pkgname-$pkgver.tar.gz" subpackages="$pkgname-doc" prepare() { - cd "$srcdir/$pkgname-$pkgver" - # fix eglibc-2.16+ build issue - sed -i -e '/gets is a/d' \ - gnu/stdio.in.h || return 1 + cd "$srcdir/$pkgname-$pkgver" + update_config_sub || return 1 + # fix eglibc-2.16+ build issue + sed -i -e '/gets is a/d' \ + gnu/stdio.in.h || return 1 } build() { @@ -34,6 +35,10 @@ build() { package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install + + rm -rf "$pkgdir"/usr/lib/charset.alias + rmdir -p "$pkgdir"/usr/lib 2>/dev/null + mkdir "$pkgdir"/bin mv "$pkgdir"/usr/bin/tar "$pkgdir"/bin/ ln -s /bin/tar "$pkgdir"/usr/bin/tar |