summaryrefslogtreecommitdiffstats
path: root/gegl-git/PKGBUILD
blob: faab426289e9ed03e54a5ec1ab5e85a5142792ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>

pkgname=gegl-git
pkgver=20100109
pkgrel=1
pkgdesc="GEGL (Generic Graphics Library) is a graph based image processing framework."
arch=('i686' 'x86_64')
url="http://www.gegl.org/"
license=('GPL')
conflicts=('gegl')
provides=('gegl')
depends=('glib2>=2.10' 'babl-git' 'libpng' 'ruby')
makedepends=('git')
install=$pkgname.install
source=($pkgname.install)
md5sums=('2289b100d1d4ee9ef6b3ad02eddbc899')

_gitroot=('git://git.gnome.org/gegl')
_gitname=('gegl')

 build() {
  cd $startdir/src
  msg "Connecting to gnome.org git server...."
  rm  -rf $startdir/src/$_gitname-build
  
  if [[ -d $_gitname ]]; then
   cd $_gitname || return 1
   git pull origin || return 1
    else
   git clone $_gitroot $_gitname || return 1
     fi
  msg " checkout done."

    msg "Starting make..."
    cd "$srcdir"
    rm -r "$srcdir/$_gitname-build"
    cp -r $srcdir/$_gitname $_gitname-build
    cd $_gitname-build

  ./autogen.sh --prefix=/usr --disable-docs
  make || return 1
  make DESTDIR="$pkgdir" install || return 1
}