diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-16 17:13:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-17 10:36:46 +0000 |
commit | 5b3b78167bc5f3df7cb300870e1147f919d47822 (patch) | |
tree | 63fdc670f3d6752656b870c8052c94099416d6ea | |
parent | a60b2fc7c0186f3c2075e275b48986674a0a7ed0 (diff) | |
download | aports-5b3b78167bc5f3df7cb300870e1147f919d47822.tar.bz2 aports-5b3b78167bc5f3df7cb300870e1147f919d47822.tar.xz |
main/glib: build static libs
-rw-r--r-- | main/glib/APKBUILD | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/main/glib/APKBUILD b/main/glib/APKBUILD index 363005ca74..7435c8036d 100644 --- a/main/glib/APKBUILD +++ b/main/glib/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=glib pkgver=2.50.2 -pkgrel=0 +pkgrel=1 pkgdesc="Common C routines used by Gtk+ and other libs" url="http://www.gtk.org" arch="all" @@ -15,7 +15,7 @@ makedepends="$depends_dev pcre-dev" source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz 0001-gquark-fix-initialization-with-c-constructors.patch " -subpackages="$pkgname-dbg $pkgname-doc $pkgname-dev $pkgname-lang $pkgname-bash-completion:bashcomp:noarch" +subpackages="$pkgname-dbg $pkgname-doc $pkgname-static $pkgname-dev $pkgname-lang $pkgname-bash-completion:bashcomp:noarch" _builddir="$srcdir"/$pkgname-$pkgver prepare() { @@ -41,6 +41,7 @@ build() { --disable-compile-warnings \ --with-pcre=system \ --with-pic \ + --enable-static \ || return 1 make || return 1 } @@ -65,6 +66,13 @@ dev() { "$subpkgdir"/usr/share } +static() { + pkgdesc="glib static libraries" + depends="gettext-static" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ +} + bashcomp() { pkgdesc="Bash completion for $pkgname" depends= |