# Contributor: Valery Kartel # Maintainer: Carlo Landmeter pkgname=gettext pkgver=0.19.7 pkgrel=0 pkgdesc="GNU locale utilities" url="http://www.gnu.org/software/gettext/gettext.html" arch="all" license="GPL" depends= makedepends="perl ncurses-dev libxml2-dev glib-dev libcroco-dev libunistring-dev" source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-dev $pkgname-lang libintl $pkgname-asprintf $pkgname-libs" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-threads=posix \ --with-pic \ --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="f81e50556da41b44c1d59ac93474dca5 gettext-0.19.7.tar.xz" sha256sums="378fa86a091cec3acdece3c961bb8d8c0689906287809a8daa79dc0c6398d934 gettext-0.19.7.tar.xz" sha512sums="a8ed47fc38d8730ccd46bfa6620c0b42efcfcbfa39fa94ddecb2fa3b62b377827f29e702dc327fbc682b98534e1f54783d21a3bb5ba629f6358be00bfb4da009 gettext-0.19.7.tar.xz"