blob: 88753c39331281ddeca54f4e678f85ea4583e709 (
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
52
53
54
55
56
57
58
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=harfbuzz
pkgver=0.9.32
pkgrel=0
pkgdesc="Text shaping library"
url="http://freedesktop.org/wiki/Software/HarfBuzz"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev freetype-dev glib-dev cairo-dev icu-dev"
install=""
subpackages="$pkgname-dev $pkgname-icu"
source="http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-$pkgver.tar.bz2"
_builddir="$srcdir"/harfbuzz-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static \
|| return 1
make
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
rm "$pkgdir"/usr/lib/*.la
}
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="b8c19f87ee7da0813c77a7b43bef4c98 harfbuzz-0.9.32.tar.bz2"
sha256sums="430c81744e2d87b36f529b16f18efd0d0140aee9df59b2ee312f5de1994b9db4 harfbuzz-0.9.32.tar.bz2"
sha512sums="a8fd7b89427d6162554256fd4948a0e32b64d6c2b3f31b8a4e1fcc6e1985ea282123dae784e6e80c3b88d309acabbfa4d3f9bcb7d660e01d478267a28bc95bf2 harfbuzz-0.9.32.tar.bz2"
|