# Contributor: Valery Kartel # Maintainer: Carlo Landmeter pkgname=gettext pkgver=0.19.8 pkgrel=0 pkgdesc="GNU locale utilities" url="http://www.gnu.org/software/gettext/gettext.html" arch="all" license="GPL" depends= # do _not_ add the optional dependencies on libcroco or glib # they depend on gettext and would introduce cyclic dependencies makedepends="perl ncurses-dev libxml2-dev libunistring-dev" source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz fix-abi.patch" subpackages="$pkgname-doc $pkgname-dev $pkgname-lang libintl $pkgname-asprintf $pkgname-libs" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" # force using system posix complaint printf # the test is broken and fails with ash gt_cv_func_printf_posix=yes \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-threads=posix \ --disable-java \ --disable-static \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/charset.alias } libintl() { pkgdesc="GNU gettext runtime library" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libintl.so.* "$subpkgdir"/usr/lib chmod +x "$subpkgdir"/usr/lib/libintl.so.* } asprintf() { pkgdesc="GNU gettext asprintf library" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libasprintf.so.* "$subpkgdir"/usr/lib } md5sums="3e7ed1ac886b9b1a4e23e71113da6358 gettext-0.19.8.tar.xz 054ee44e6dfb056efd42dc3063e273ae fix-abi.patch" sha256sums="9c1781328238caa1685d7bc7a2e1dcf1c6c134e86b42ed554066734b621bd12f gettext-0.19.8.tar.xz 48dff403e8966137e900186b2fbf9adaf7c3743ccc4c4d05b2b250009a0a6273 fix-abi.patch" sha512sums="d5feb371ed1062f2175a2227294417e4dd964d6211bad5f99471ea2f2b34a301b78e963290b30c7f31ba107ee126746025ff6b87cfd79a4aeb1b672e38ffc74c gettext-0.19.8.tar.xz f517a351864bb194117e7147015db9a9b0ffbb1feb22ecf39bc1c99ad904420467e267a893c3b1a76c1adb810d1b37b1c2c1273cda861ff1d260102701bc644a fix-abi.patch"