From 54f6029e04df3079fbd27f3631e793162618f326 Mon Sep 17 00:00:00 2001 From: Marco A L Barbosa Date: Tue, 12 Jun 2018 09:22:36 -0300 Subject: main/harfbuzz: build static lib --- main/harfbuzz/APKBUILD | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'main/harfbuzz') diff --git a/main/harfbuzz/APKBUILD b/main/harfbuzz/APKBUILD index 4de2165b7a1..4773a4956bc 100644 --- a/main/harfbuzz/APKBUILD +++ b/main/harfbuzz/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa pkgname=harfbuzz pkgver=1.7.6 -pkgrel=0 +pkgrel=1 pkgdesc="Text shaping library" url="http://freedesktop.org/wiki/Software/HarfBuzz" arch="all" @@ -13,7 +13,7 @@ options="!check" makedepends="freetype-dev glib-dev gobject-introspection-dev cairo-dev icu-dev graphite2-dev" checkdepends="python3" -subpackages="$pkgname-dev $pkgname-icu" +subpackages="$pkgname-static $pkgname-dev $pkgname-icu" source="http://www.freedesktop.org/software/$pkgname/release/$pkgname-$pkgver.tar.bz2" builddir="$srcdir/$pkgname-$pkgver" @@ -27,7 +27,7 @@ build() { --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ - --disable-static \ + --enable-static \ --with-glib \ --with-gobject \ --with-graphite2 \ @@ -46,6 +46,13 @@ package() { make DESTDIR="$pkgdir" install } +static() { + pkgdesc="$pkgdesc (static libraries)" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ +} + dev() { default_dev mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ -- cgit v1.2.3