summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/harfbuzz/APKBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/user/harfbuzz/APKBUILD b/user/harfbuzz/APKBUILD
new file mode 100644
index 000000000..41817693d
--- /dev/null
+++ b/user/harfbuzz/APKBUILD
@@ -0,0 +1,59 @@
+# Contributor: Sören Tempel <soeren+alpinelinux@soeren-tempel.net>
+# Maintainer:
+pkgname=harfbuzz
+pkgver=1.8.2
+pkgrel=0
+pkgdesc="Text shaping library"
+url="https://www.freedesktop.org/wiki/Software/HarfBuzz"
+arch="all"
+options="!check" # tests depend on certain freetype behaviours
+license="MIT"
+depends=""
+makedepends="cairo-dev freetype-dev glib-dev gobject-introspection-dev icu-dev
+ graphite2-dev"
+checkdepends="python3"
+subpackages="$pkgname-dev $pkgname-icu"
+source="http://www.freedesktop.org/software/$pkgname/release/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static \
+ --with-glib \
+ --with-gobject \
+ --with-graphite2 \
+ --with-icu \
+ --with-truetype
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+dev() {
+ default_dev
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+icu() {
+ pkgdesc="Harfbuzz ICU support library"
+ replaces="harfbuzz"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/lib*icu.so.* "$subpkgdir"/usr/lib/
+}
+
+sha512sums="c88a3e9e55866608647318a1af7c5d848863cd894d635583b8a2d2a7a02eea875b7a5a4f0f38555d80f2e81628743e40710f5e6f9251bf629f1d15ac51103e5a harfbuzz-1.8.2.tar.bz2"