aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/harfbuzz/APKBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/main/harfbuzz/APKBUILD b/main/harfbuzz/APKBUILD
index 4de2165b7a..4773a4956b 100644
--- a/main/harfbuzz/APKBUILD
+++ b/main/harfbuzz/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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/