updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / cairo-git / PKGBUILD
blobb58fc2f42f43ac92296e94d4f920415885bee5e8
1 # Maintainer: dx <dx@dxzone.com.ar>
2 # Based on the official cairo package
4 pkgname=cairo-git
5 pkgver=20101120
6 pkgrel=1
7 pkgdesc="Cairo vector graphics library (git version)"
8 arch=(i686 x86_64)
9 license=('LGPL' 'MPL')
10 url="http://cairographics.org/"
11 depends=('libpng>=1.4.0' 'libxrender' 'fontconfig>=2.8.0' 'pixman>=0.18.4' 'xcb-util>=0.3.6' 'glib2>=2.24.0')
12 makedepends=('gtk-doc' 'git')
13 options=('!libtool')
14 provides=('cairo=1.10.0' 'cairo-xcb=1.10.0')
15 conflicts=('cairo' 'cairo-xcb')
16 source=(cairo-1.10.0-buggy_gradients.patch)
17 sha1sums=('8b843a9934e5112b6188e5bcf4adfc1fdaf9fa04')
18 _gitroot='git://anongit.freedesktop.org/git/cairo'
19 _gitname='cairo'
21 build() {
22   if [ -d "${srcdir}"/${_gitname} ]; then
23     cd "${srcdir}"/${_gitname}
24     git pull
25   else
26     cd "${srcdir}"
27     git clone ${_gitroot}
28     cd ${_gitname}
29   fi
31   patch -Np1 -i "${srcdir}/cairo-1.10.0-buggy_gradients.patch"
33   #  sed -i -e 's/libpng13/libpng14/g' configure
34   ./autogen.sh --prefix=/usr --sysconfdir=/etc \
35     --localstatedir=/var --enable-xcb --disable-static
36   make
39 package(){
40   cd "${srcdir}"/${_gitname}
41   make DESTDIR="${pkgdir}" install