updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / cairo-ubuntu-xcb / PKGBUILD
blob12f608c5ac4ad4987a0e5ff61945875a0fd3afef
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
8 pkgver=1.10.2
9 _ubver=1.10.2-2ubuntu2
10 pkgrel=5
11 pkgdesc="Cairo vector graphics library, with Ubuntu's LCD rendering patches. Enabled xcb for awesome window manager."
12 arch=(i686 x86_64)
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')
19 options=('!libtool')
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')
28 build() {
29   cd $srcdir/cairo-$pkgver
31   for _f in $(cat $srcdir/debian/patches/series) ; do
32     patch -Np1 -i $srcdir/debian/patches/$_f
33   done
35   patch -Np1 -i $srcdir/cairo-respect-fontconfig.patch
37   ./configure --prefix=/usr --sysconfdir=/etc \
38     --localstatedir=/var --enable-xcb --disable-static \
39     --enable-tee
40   make
43 package() {
44   cd $srcdir/cairo-$pkgver
46   make DESTDIR=$pkgdir install
48   # Docs
49   # Excluding debian/changelog temporarily
50   install -d $pkgdir/usr/share/doc/cairo/
51   install -m644 -t $pkgdir/usr/share/doc/cairo/ NEWS README