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

                                                                   
            
        








                                                                              
                                                                                      
         
















                                           


                  













                                                               
                                                                                                                                                                    
# Contributor: Sören Tempel <soeren+alpinelinux@soeren-tempel.net>
# Maintainer: 
pkgname=harfbuzz
pkgver=2.5.3
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://www.freedesktop.org/software/$pkgname/release/$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="a2e6cedbe0e505fa31b540e0d0bc6c0b07080bd39879c27e04d351103e21201d75a809dd2fad559bf994b82b311f67ad85778cbbfb670d7e2580beafa09e93ff  harfbuzz-2.5.3.tar.xz"