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


                                                                   

            









                                                                              
                                                                                       

         

















                                           



                  














                                                               
                                                                                                                                                                     
# Contributor: Sören Tempel <soeren+alpinelinux@soeren-tempel.net>
# Maintainer: 
pkgname=harfbuzz
pkgver=2.3.1
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.bz2"

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="78a8f05bfcc95cfe3fc0f1a595bdc7298c9c1456db6c7ef70914051fda43f37aaff15eac75aa6922eca82d2291baeb8385e02e6aacb44ca05b4873c311a662ac  harfbuzz-2.3.1.tar.bz2"