aboutsummaryrefslogtreecommitdiffstats
path: root/main/libiconv
diff options
context:
space:
mode:
Diffstat (limited to 'main/libiconv')
-rw-r--r--main/libiconv/APKBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/main/libiconv/APKBUILD b/main/libiconv/APKBUILD
index f53a019968..21bf1ef17d 100644
--- a/main/libiconv/APKBUILD
+++ b/main/libiconv/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Carlo Landmeter <clandmeter at gmail.com>
pkgname=libiconv
pkgver=1.12
-pkgrel=3
+pkgrel=4
pkgdesc="GNU charset conversion library for libc which doesn't implement it"
url="http://www.gnu.org/software/libiconv"
license='LGPL'
@@ -11,15 +11,23 @@ subpackages="$pkgname-doc $pkgname-dev"
build() {
cd "$srcdir/$pkgname-$pkgver"
-
- ./configure --prefix=/usr \
- --mandir=/usr/share/man
- make || return 1
+ #only build if we need it
+ if [ "$ALPINE_LIBC" != "eglibc" ]; then
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man
+ make || return 1
+ fi
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir/" install
+ #if we use eglibc we install dummy libiconv
+ if [ "$ALPINE_LIBC" = "eglibc" ]; then
+ mkdir -p "$pkgdir"/usr/include "$pkgdir"/usr/share/doc
+ else
+ make DESTDIR="$pkgdir/" install
+ fi
}
+
md5sums="c2be282595751535a618ae0edeb8f648 libiconv-1.12.tar.gz"