blob: 2ccbf6885e1a1121684d5498caa07a0f88926d4d (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=graphite2
_realname=${pkgname/2/}
pkgver=1.3.8
pkgrel=0
pkgdesc="reimplementation of the SIL Graphite text processing engine"
url="http://graphite.sil.org/"
arch="all"
license="LGPL"
depends=""
depends_dev="freetype-dev"
makedepends="$depends_dev python cmake"
install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/silnrsi/$_realname/archive/$pkgver.tar.gz
cmake.patch
graphite2-1.2.0-cmakepath.patch
"
_builddir="$srcdir"/$_realname-$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"
mkdir build && cd build
cmake -G "Unix Makefiles" .. \
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DGRAPHITE2_COMPARE_RENDERER=OFF \
-DGRAPHITE2_NFILEFACE=ON \
-DGRAPHITE2_NSEGCACHE=ON || return 1
# fix unwanted -O3 cflag (taken form Debian)
find . -type f ! -name "rules" ! -name "changelog" -exec sed -i -e 's/\-O3//g' {} \;
make || return 1
}
package() {
cd "$_builddir"/build
make DESTDIR="$pkgdir/" install
}
md5sums="7af5d39b01ebcd0b562ce8c52741c1ec graphite2-1.3.8.tar.gz
741b8e8c91e5363beb5b1fe7e268f404 cmake.patch
10df2e0a1ef4cee7edb9a6ad0c034b3c graphite2-1.2.0-cmakepath.patch"
sha256sums="954f3dc88f4cf02d892697f4fb7e5bb5a515da81eb26e63f7d1a046459ed7842 graphite2-1.3.8.tar.gz
210e864979f4c49a9476d7e563013c39df40e5657bfd5f007f40897b9d636419 cmake.patch
865b6edadffb97a983cc28dafb6827005dea153f5187db859180bc43a4500200 graphite2-1.2.0-cmakepath.patch"
sha512sums="4600ad08784fce7bf76e39a03fc11339f48949f5048de7e4002795833ea0af9112d2a5f769595ed05d223242d7e5faa36ea883e435c64e00df41eac8af04e035 graphite2-1.3.8.tar.gz
44dcff1e6c8c5e3df92eae8cab501c9605a1cd3e16b6cdce2e376d78fd08b26b7f6e037b7e5878099ba426a93572114169b5f64c4d2ae0bcbe223f1d28b00eb5 cmake.patch
4ef5414e6d554bb8d6ead435e38d061a073f350c313b7141158bb68332f5f57ca5250385875a387b828bb657964588e974143b96b5e11c2cd314871e7baddb88 graphite2-1.2.0-cmakepath.patch"
|