blob: a98e61e247b39797bb88080ce56e24998f96d306 (
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
59
60
61
62
63
64
|
# Contributor: Sören Tempel <soeren+alpinelinux@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=harfbuzz
pkgver=1.0.6
pkgrel=1
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
graphite2-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 \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-static \
--with-graphite2 \
|| return 1
make
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || 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="2256fd144c936936db9c92e77510a011 harfbuzz-1.0.6.tar.bz2"
sha256sums="f616a7fbdc78a627043f9029000bf08c0c71df59cde4143fc92a014f6a993b26 harfbuzz-1.0.6.tar.bz2"
sha512sums="20ee169389a784e4ad4e2ff006a59a36879dba0a37a999ff51c2b4d76da9496a1a747d5176e9611998187452e6d18f880295bdfb9f45338acddf772fc3f16021 harfbuzz-1.0.6.tar.bz2"
|