updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / babl-git / PKGBUILD
blob54fda8fd6d8d8ab659dde358854655db28c684e2
1 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
2 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
4 pkgname=babl-git
5 pkgver=20100707
6 pkgrel=1
7 pkgdesc="babl is a dynamic, any to any, pixel format translation library"
8 arch=('i686' 'x86_64')
9 url="http://www.gegl.org/babl"
10 license=('GPL')
11 conflicts=('babl')
12 provides=('babl')
13 depends=('glib2>=2.10' 'libpng')
14 makedepends=('git')
16 _gitroot='git://git.gnome.org/babl'
17 _gitname='babl'
19 build() {
20         cd $startdir/src
21         msg "Connecting to gnome.org git server...."
23         if [[ -d $_gitname ]]; then
24                 cd $_gitname
25                 git pull origin
26         else
27                 git clone $_gitroot $_gitname
28         fi
29         msg " checkout done."
31         msg "Starting make..."
32         cd "$srcdir"
33         [ -d "${srcdir}/${_gitname}-build" ] && rm -rf "${srcdir}/${_gitname}-build"
34         cp -a $_gitname $_gitname-build
35         cd $_gitname-build
37         ./autogen.sh --prefix=/usr
38         make
39         make DESTDIR="$pkgdir" install