summaryrefslogtreecommitdiffstats
path: root/main/libiconv/APKBUILD
diff options
context:
space:
mode:
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"