aboutsummaryrefslogtreecommitdiffstats
path: root/main/harfbuzz/APKBUILD
blob: 0831e94d2fe6f7b87799b38b54052abd95de220c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Sören Tempel <soeren+alpinelinux@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=harfbuzz
pkgver=1.3.3
pkgrel=0
pkgdesc="Text shaping library"
url="http://freedesktop.org/wiki/Software/HarfBuzz"
arch="all"
license="MIT"
depends=""
makedepends="freetype-dev glib-dev cairo-dev icu-dev graphite2-dev"
subpackages="$pkgname-dev $pkgname-icu"
source="http://www.freedesktop.org/software/$pkgname/release/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"
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-graphite2 \
		|| return 1
	make || return 1
}

package() {
	make DESTDIR="$pkgdir" \
		-C "$builddir" install || return 1
}

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/
}

md5sums="97ae15a72a93f1f27324a2b8d9bd3b1d  harfbuzz-1.3.3.tar.bz2"
sha256sums="2620987115a4122b47321610dccbcc18f7f121115fd7b88dc8a695c8b66cb3c9  harfbuzz-1.3.3.tar.bz2"
sha512sums="d9759f849b892db534da163074b21d444c1558fed31de3b025ff6a8d14af180bd758735fcb9c58ca579a585f168644b5397a85a3767c73c13b2e343a63cd59ed  harfbuzz-1.3.3.tar.bz2"