aboutsummaryrefslogtreecommitdiffstats
path: root/main/gettext
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-01-16 17:22:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-01-17 10:36:46 +0000
commita60b2fc7c0186f3c2075e275b48986674a0a7ed0 (patch)
tree1d0a4ba6c5d347f085ec3b269513991ead78e631 /main/gettext
parentc1d8228c7574a1a747c6ec92749b2a634313d3b9 (diff)
downloadaports-a60b2fc7c0186f3c2075e275b48986674a0a7ed0.tar.bz2
aports-a60b2fc7c0186f3c2075e275b48986674a0a7ed0.tar.xz
main/gettext: add subpackage for static
Diffstat (limited to 'main/gettext')
-rw-r--r--main/gettext/APKBUILD12
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