summaryrefslogtreecommitdiffstats
path: root/babl-git/PKGBUILD
blob: 6e7c00e075cd90a848fefb22ae71f6e84b3ceb38 (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=babl-git
pkgver=20100109
pkgrel=1
pkgdesc="babl is a dynamic, any to any, pixel format translation library"
arch=('i686' 'x86_64')
url="http://www.gegl.org/babl"
license=('GPL')
conflicts=('babl')
provides=('babl')
depends=('glib2>=2.10' 'libpng')
makedepends=('git')
source=()
md5sums=()

_gitroot=('git://git.gnome.org/babl')
_gitname=('babl')
				     
 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 
  make || return 1
  make DESTDIR="$pkgdir" install || return 1
}