mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-11 19:02:42 +01:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Maintainer: Carlo Landmeter <clandmeter at gmail.com>
|
|
pkgname=libiconv
|
|
pkgver=1.12
|
|
pkgrel=7
|
|
pkgdesc="GNU charset conversion library for libc which doesn't implement it"
|
|
url="http://www.gnu.org/software/libiconv"
|
|
arch="all"
|
|
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
|
|
[ "$ALPINE_LIBC" = "eglibc" ] && return 0
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
|| return 1
|
|
# work around rpath issue
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
make || return 1
|
|
}
|
|
|
|
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
|
|
rm "$pkgdir"/usr/lib/*.la
|
|
fi
|
|
}
|
|
|
|
|
|
md5sums="c2be282595751535a618ae0edeb8f648 libiconv-1.12.tar.gz"
|