Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.07 KB  |  hits: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
  2. # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
  3.  
  4. pkgname=gegl-git
  5. pkgver=20100707
  6. pkgrel=1
  7. pkgdesc="GEGL (Generic Graphics Library) is a graph based image processing framework."
  8. arch=('i686' 'x86_64')
  9. url="http://www.gegl.org/"
  10. license=('GPL')
  11. conflicts=('gegl')
  12. provides=('gegl')
  13. depends=('glib2>=2.10' 'babl-git' 'libpng' 'ruby')
  14. makedepends=('git')
  15. install=$pkgname.install
  16. source=($pkgname.install)
  17. md5sums=('2289b100d1d4ee9ef6b3ad02eddbc899')
  18.  
  19. _gitroot='git://git.gnome.org/gegl'
  20. _gitname='gegl'
  21.  
  22. build() {
  23.         cd $startdir/src
  24.         msg "Connecting to gnome.org git server...."
  25.  
  26.         if [[ -d $_gitname ]]; then
  27.                 cd $_gitname
  28.                 git pull origin
  29.         else
  30.                 git clone $_gitroot $_gitname
  31.         fi
  32.         msg " checkout done."
  33.  
  34.         msg "Starting make..."
  35.         cd "$srcdir"
  36.         [ -d "${srcdir}/${_gitname}-build" ] && rm -rf "${srcdir}/${_gitname}-build"
  37.         cp -r $srcdir/$_gitname $_gitname-build
  38.         cd $_gitname-build
  39.  
  40.         ./autogen.sh --prefix=/usr --disable-docs
  41.         make
  42.         make DESTDIR="$pkgdir" install
  43. }