updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gegl-gtk3-git / PKGBUILD
blob21cead660bfa627198f2a14dac55aa93aa91073f
1 # Maintainer: Jon Nordby <jononor@gmail.com>
3 _pkgname=gegl-gtk3
4 pkgname=$_pkgname-git
5 pkgver=20111120
6 pkgrel=1
7 pkgdesc="Convenience library for using GEGL in GTK3 applications - git version" 
8 arch=(i686 x86_64)
9 url="http://www.gegl.org"
10 license=('LGPLv3+')
11 depends=('gegl' 'gtk3')
12 makedepends=('git')
13 provides=($_pkgname)
14 conflicts=($_pkgname)
15 source=()
16 md5sums=() #generate with 'makepkg -g'
18 _gitroot="git://git.gnome.org/gegl-gtk"
19 _gitname="gegl-gtk"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   # BUILD
40   # Introspection requires gegl from git
41   ./autogen.sh --prefix=/usr --disable-introspection --with-gtk=3.0
42   make
45 package() {
46   cd "$srcdir/$_gitname-build"
48   make DESTDIR="$pkgdir/" install
49