This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

vala-git PKGBUILD

By: a guest on Apr 9th, 2010  |  syntax: Bash  |  size: 1.34 KB  |  views: 172  |  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. # $Id: PKGBUILD 3145 2009-09-28 10:00:46Z ibiru $
  2. # Contributor: Timm Preetz <timm@preetz.us>
  3. # Contributor: Alexander Fehr <pizzapunk gmail com>
  4. # Contributor: Thijs Vermeir <thijsvermeir@gmail.com>
  5.  
  6. pkgname=vala-git
  7. pkgver=20100409
  8. _realver=0.8.1
  9. pkgrel=1
  10. pkgdesc="Compiler for the GObject type system"
  11. arch=('i686' 'x86_64')
  12. url="http://live.gnome.org/Vala"
  13. license=('LGPL')
  14. depends=('bash' 'glib2')
  15. makedepends=('libxslt')
  16. options=('!libtool')
  17. conflicts=('vala')
  18. provides=("vala=${_realver}")
  19.  
  20.  
  21. _gitroot="git://git.gnome.org/vala"
  22. _gitname="vala"
  23.  
  24.  
  25. build() {
  26.   cd ${srcdir}/
  27.  
  28.     msg "Connecting to the GIT server...."
  29.     if [[ -d ${srcdir}/${_gitname} ]] ; then
  30.         cd ${_gitname}
  31.         git pull origin
  32.         msg "The local files are updated..."
  33.     else
  34.         git clone ${_gitroot}
  35.     fi
  36.    
  37.     msg "GIT checkout done."
  38.  
  39.     msg "Starting make for: ${pkgname}"
  40.    
  41.     if [[ -d ${srcdir}/${_gitname}-build ]]; then
  42.        msg "Cleaning the previous build directory..."
  43.        rm -rf ${srcdir}/${_gitname}-build
  44.     fi
  45.  
  46.     git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
  47.    
  48.     cd ${srcdir}/${_gitname}-build
  49.  
  50.      ./autogen.sh --prefix=/usr --enable-vapigen || return 1
  51.     make || return 1
  52.  
  53. }
  54.  
  55. package() {
  56.  
  57.   cd ${srcdir}/${_gitname}-build
  58.  
  59.   make DESTDIR="$pkgdir" install || return 1
  60. }
clone this paste RAW Paste Data