Browse code

First commit

Qurban Ullah authored on 27/02/2018 18:19:13
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,58 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgname=cairo
6
+pkgver=1.14.12
7
+pkgrel=1
8
+pkgdesc="Cairo vector graphics library"
9
+arch=(i686 x86_64)
10
+license=('LGPL' 'MPL')
11
+url="http://cairographics.org/"
12
+depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman' 'glib2' 'mesa' 'libgl' 'lzo')
13
+makedepends=('mesa-libgl' 'librsvg' 'gtk2' 'poppler-glib' 'libspectre' 'gtk-doc' 'valgrind' 'git')
14
+             # for the test suite:
15
+             #'ttf-dejavu' 'gsfonts' 'xorg-server-xvfb' ) # 'libdrm')
16
+optdepends=('xcb-util: for XCB backend')
17
+provides=('cairo-xcb')
18
+replaces=('cairo-xcb')
19
+source=(http://cairographics.org/releases/cairo-$pkgver.tar.xz)
20
+sha1sums=('c8da68aa66ca0855b5d0ff552766d3e8679e1d24')
21
+
22
+build() {
23
+	cd "${srcdir}/${pkgname}-${pkgver}"
24
+	./configure --prefix=/usr \
25
+	--sysconfdir=/etc \
26
+	--localstatedir=/var \
27
+	--disable-static \
28
+	--enable-tee \
29
+	--enable-gl \
30
+	--enable-egl \
31
+	--enable-svg \
32
+	--enable-ps \
33
+	--enable-pdf \
34
+	--enable-gobject \
35
+	--enable-gtk-doc
36
+
37
+	#--enable-xlib-xcb \ firefox crashes  "internal Xlib length error"
38
+	#--enable-test-surfaces \ takes ages
39
+	#--enable-drm # breaks build
40
+	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
41
+	make ${MAKEFLAGS}
42
+}
43
+
44
+check() {
45
+	cd "${srcdir}/${pkgname}-${pkgver}"
46
+	#make -k test || /bin/true
47
+	  
48
+	# results:
49
+	# 1.12.8-1	# 162 Passed, 328 Failed [8 crashed, 10 expected], 26 Skipped
50
+	# 1.12.12-2:	# 29 Passed, 464 Failed [460 crashed, 2 expected], 26 Skipped
51
+	# 1.12.16-1:	144 Passed, 364 Failed [6 crashed, 12 expected], 27 Skipped
52
+}
53
+
54
+package() {
55
+	cd "${srcdir}/${pkgname}-${pkgver}"
56
+	make DESTDIR="${pkgdir}" install
57
+}
58
+