public
Last active

cairo 1.12.14 + patches

  • Download Gist
PKGBUILD
Shell
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
# $Id: PKGBUILD 175889 2013-01-23 11:37:31Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Brice Carpentier <brice@daknet.org>, bohoomil
 
pkgname=cairo
pkgver=1.12.14
pkgrel=1
pkgdesc="Cairo vector graphics library (patched)"
arch=(i686 x86_64)
license=('LGPL' 'MPL')
url="http://cairographics.org/"
depends=('libpng' 'libxrender' 'libxext' 'fontconfig' 'pixman>=0.28.0' 'glib2' 'sh')
makedepends=('librsvg' 'poppler-glib' 'libspectre' 'gtk-doc' 'valgrind')
optdepends=('xcb-util: for XCB backend')
provides=('cairo-xcb')
replaces=('cairo-xcb')
options=('!libtool')
source=(http://cairographics.org/releases/$pkgname-$pkgver.tar.xz
cairo-respect-fontconfig.patch
cairo-1.12.8-expose_snapshot-1.patch
http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_1.12.14-0ubuntu1.debian.tar.gz)
 
build() {
cd "$srcdir/$pkgname-$pkgver"
 
for _f in $(cat $srcdir/debian/patches/series) ; do
patch -Np1 -i $srcdir/debian/patches/$_f
done
 
patch -Np1 -i ../cairo-respect-fontconfig.patch
patch -Np1 -i ../cairo-1.12.8-expose_snapshot-1.patch
sed '20 aAM_PROG_AR' -i $srcdir/${pkgname}-${pkgver}/configure.ac
 
autoreconf -i --force
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-tee \
--enable-gl \
--enable-egl \
--enable-svg \
--enable-ps \
--enable-pdf \
--enable-xlib-xcb \
--enable-gobject
make
}
 
#check() {
# cd "$srcdir/$pkgname-$pkgver"
# make -k check || /bin/true # 162 Passed, 328 Failed [8 crashed, 10 expected], 26 Skipped
#}
 
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
md5sums=('27b634113d0f52152d60ae8e2ec7daa7'
'79f7c141c49f3d65ab308cc706d50914'
'92bb0af20e9438d07a04a586841ac90f'
'2465d76908c35aae2be04df33c41064b')

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.