blob: 77814eb16c223a06031093d71bbae0319510284e (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cairo
pkgver=1.14.4
pkgrel=0
pkgdesc="A vector graphics library"
url="http://cairographics.org/"
arch="all"
license="LGPL2+ MPL 1.1"
depends=
depends_dev="fontconfig-dev freetype-dev libpng-dev libxrender-dev pixman-dev
xcb-util-dev glib-dev libxext-dev"
makedepends="$depends_dev zlib-dev expat-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-gobject $pkgname-tools"
# fontconfig-ultimate https://github.com/bohoomil/fontconfig-ultimate
_ultver="2015-06-09"
source="http://cairographics.org/releases/$pkgname-$pkgver.tar.xz
fontconfig-ultimate-$_ultver.tar.gz::https://github.com/bohoomil/fontconfig-ultimate/archive/$_ultver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# infinality
for j in "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/*.patch; do
msg "Applying ${j}"
patch -p1 -i $j || return 1
done
}
build() {
cd "$_builddir"
autoreconf -vif
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-ft \
--enable-gobject \
--enable-pdf \
--enable-png \
--enable-ps \
--enable-tee \
--enable-xcb \
--enable-xlib-xrender \
--disable-xlib-xcb \
--disable-static \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
gobject() {
pkgdesc="GObject bindings for cairo"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libcairo-gobject.so.* "$subpkgdir"/usr/lib/
}
tools() {
pkgdesc="Development tools for cairo"
mkdir -p "$subpkgdir"/usr/lib/cairo
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1
mv "$pkgdir"/usr/lib/cairo/libcairo-trace.* \
"$subpkgdir"/usr/lib/cairo/
}
md5sums="90a929e8fe66fb5d19b5adaaea1e9a12 cairo-1.14.4.tar.xz
70a971a34af0974bb61201925aab6929 fontconfig-ultimate-2015-06-09.tar.gz"
sha256sums="f6ec9c7c844db9ec011f0d66b57ef590c45adf55393d1fc249003512522ee716 cairo-1.14.4.tar.xz
0195e8bff84ab973c001f04b9f5e9d59711444bfeebbed57ef76518975c91394 fontconfig-ultimate-2015-06-09.tar.gz"
sha512sums="b0d983c89ed31a53e26af89e174bb6df3e7c83cf482cbf975c839022ea84b74bb775599d24ca50f4482bbb6d6ef5d09ebb8273d08dfc928328f880344d4e66b2 cairo-1.14.4.tar.xz
766562cb90651936edb43c206b30653a50fc401c2b9affe7cad73d69adfba3aaa6362830153eda6631dc3b8f5d0fd9b02934326ff1c4a68d136555bd6a48db86 fontconfig-ultimate-2015-06-09.tar.gz"
|