summaryrefslogtreecommitdiffstats
path: root/main/libiconv/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-23 13:00:01 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-23 13:01:09 +0000
commitc50e86c3643bcdf5c2ba0efe04d1f69a3bc4031d (patch)
treefe8fe75fba9e174cb7e7856ffb3792b5719dff22 /main/libiconv/APKBUILD
parent7d537b8775d8f2b7082a73dc21e5b36dbe8cde7a (diff)
downloadaports-c50e86c3643bcdf5c2ba0efe04d1f69a3bc4031d.tar.bz2
aports-c50e86c3643bcdf5c2ba0efe04d1f69a3bc4031d.tar.xz
main/libiconv: build only on uclibc
should not be needed with musl
Diffstat (limited to 'main/libiconv/APKBUILD')
-rw-r--r--main/libiconv/APKBUILD11
1 files changed, 5 insertions, 6 deletions
diff --git a/main/libiconv/APKBUILD b/main/libiconv/APKBUILD
index e5ed3e26e..f71ddfc6c 100644
--- a/main/libiconv/APKBUILD
+++ b/main/libiconv/APKBUILD
@@ -12,8 +12,9 @@ subpackages="$pkgname-doc $pkgname-dev"
build() {
cd "$srcdir/$pkgname-$pkgver"
+
#only build if we need it
- [ "$ALPINE_LIBC" = "eglibc" ] && return 0
+ [ "$CLIBC" = "uclibc" ] || return 0
./configure \
--build=$CBUILD \
@@ -29,14 +30,12 @@ build() {
package() {
cd "$srcdir/$pkgname-$pkgver"
- #if we use eglibc we install dummy libiconv
- if [ "$ALPINE_LIBC" = "eglibc" ]; then
- mkdir -p "$pkgdir"/usr/include "$pkgdir"/usr/share/doc
- else
+ if [ "$CLIBC" = "uclibc" ]; then
make DESTDIR="$pkgdir/" install
rm "$pkgdir"/usr/lib/*.la
+ else
+ mkdir -p "$pkgdir"/usr/include "$pkgdir"/usr/share/doc
fi
}
-
md5sums="c2be282595751535a618ae0edeb8f648 libiconv-1.12.tar.gz"