summaryrefslogblamecommitdiff
path: root/user/harfbuzz/APKBUILD
blob: 1172a14cd025cc4ae3b50bc6367553e0ef2f1a05 (plain) (tree)
1
2
3
4
5
                                                              

                
            
        









                                                                              
                                                                                               

         

















                                           



                  














                                                               
                                                                                                                                                                    
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: 
pkgname=harfbuzz
pkgver=2.6.8
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="https://github.com/$pkgname/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz"

build() {
	./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() {
	make check
}

package() {
	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="651b23d7d4fab6fef472ee57db39bbaebc31c2f40ea3a482c1499ad1a7b549b86a2bccbe9da191c8e9ecdf464191dd3c9a7485546b51695ad8ab3c0329732d9d  harfbuzz-2.6.8.tar.xz"