diff options
-rw-r--r-- | main/gettext/APKBUILD | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/main/gettext/APKBUILD b/main/gettext/APKBUILD index 2808e6edcb..3eeeaa53e1 100644 --- a/main/gettext/APKBUILD +++ b/main/gettext/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=gettext pkgver=0.19.8.1 -pkgrel=0 +pkgrel=1 pkgdesc="GNU locale utilities" url="http://www.gnu.org/software/gettext/gettext.html" arch="all" @@ -13,7 +13,7 @@ depends= 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" +subpackages="$pkgname-doc $pkgname-static $pkgname-dev $pkgname-lang libintl $pkgname-asprintf $pkgname-libs" _builddir="$srcdir"/$pkgname-$pkgver @@ -28,7 +28,7 @@ build() { --prefix=/usr \ --enable-threads=posix \ --disable-java \ - --disable-static \ + --enable-static \ || return 1 make || return 1 } @@ -39,6 +39,12 @@ package() { rm "$pkgdir"/usr/lib/charset.alias } +static() { + pkgdesc="libintl static libraries" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ +} + libintl() { pkgdesc="GNU gettext runtime library" mkdir -p "$subpkgdir"/usr/lib |