1 # Contributor: Paul Bredbury <brebs@sent.com>
2 # Contributor: Biru Ionut <biru.ionut at gmail.com>
3 # Contributor: Andrea Fagiani <andfagiani {at} gmail {dot} com>
4 # Maintainer: Rainux Luo <rainux {at} gmail {dot} com>
6 # Installation order: freetype2-ubuntu fontconfig-ubuntu libxft-ubuntu cairo-ubuntu-xcb
7 pkgname=cairo-ubuntu-xcb
11 pkgdesc="Cairo vector graphics library, with Ubuntu's LCD rendering patches. Enabled xcb for awesome window manager."
13 url="https://launchpad.net/ubuntu/natty/+source/cairo"
14 license=('LGPL' 'MPL')
15 depends=('libpng>=1.4.0' 'libxrender' 'fontconfig-ubuntu>=2.8.0' 'libxft-ubuntu' 'pixman>=0.16.6' 'xcb-util>=0.3.6')
16 makedepends=('pkgconfig')
17 provides=("cairo=$pkgver" "cairo-tee=$pkgver" "cairo-xcb=$pkgver")
18 conflicts=('cairo' 'cairo-cleartype' 'cairo-lcd' 'cairo-tee' 'cairo-xeffects')
20 source=(http://cairographics.org/releases/cairo-$pkgver.tar.gz
21 http://archive.ubuntu.com/ubuntu/pool/main/c/cairo/cairo_$_ubver.debian.tar.gz
22 cairo-respect-fontconfig.patch)
24 md5sums=('f101a9e88b783337b20b2e26dfd26d5f'
25 'c28ce4e75bf13c2a10727b2af1385059'
26 '79f7c141c49f3d65ab308cc706d50914')
29 cd $srcdir/cairo-$pkgver
31 for _f in $(cat $srcdir/debian/patches/series) ; do
32 patch -Np1 -i $srcdir/debian/patches/$_f
35 patch -Np1 -i $srcdir/cairo-respect-fontconfig.patch
37 ./configure --prefix=/usr --sysconfdir=/etc \
38 --localstatedir=/var --enable-xcb --disable-static \
44 cd $srcdir/cairo-$pkgver
46 make DESTDIR=$pkgdir install
49 # Excluding debian/changelog temporarily
50 install -d $pkgdir/usr/share/doc/cairo/
51 install -m644 -t $pkgdir/usr/share/doc/cairo/ NEWS README