aboutsummaryrefslogtreecommitdiffstats
path: root/main/libiconv/APKBUILD
blob: 2f5fa138df7c136a2d8da601d658012200787c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Carlo Landmeter <clandmeter at gmail.com>
pkgname=libiconv
pkgver=1.12
pkgrel=4
pkgdesc="GNU charset conversion library for libc which doesn't implement it"
url="http://www.gnu.org/software/libiconv"
arch="x86 x86_64"
license='LGPL'
depends=""
source="http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.12.tar.gz"
subpackages="$pkgname-doc $pkgname-dev"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	#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"
	#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"