Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 7th, 2010  |  syntax: None  |  size: 1.28 KB  |  views: 56  |  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: <arsenm2@rpi.edu>
  2. pkgname=gobject-introspection-git
  3. pkgver=20101007
  4. pkgrel=1
  5. pkgdesc="GObject Introspection"
  6. arch=(i686 x86_64)
  7. url="http://live.gnome.org/GObjectIntrospection/"
  8. license=('LGPL')
  9. depends=('glib2' 'python' 'libffi' 'gvfs')
  10. optdepends=()
  11. makedepends=('git' 'python' 'libtool' 'pkgconfig' 'autoconf' 'gnome-common' 'gtk-doc' 'bison')
  12. provides=('gobject-introspection' 'gobject-introspection-git')
  13. conflicts=('gobject-introspection')
  14. replaces=('gobject-introspection-svn' 'gobject-introspection')
  15. backup=()
  16. groups=()
  17. options=(!makeflags docs)
  18. install=
  19. source=()
  20. noextract=()
  21. md5sums=()
  22.  
  23. _gitroot="git://git.gnome.org/gobject-introspection"
  24. _gitname="gobject-introspection"
  25.  
  26. build() {
  27.   cd $srcdir
  28.   msg "Connecting to git.gnome.org GIT server...."
  29.  
  30.   if [ -d $srcdir/$_gitname ] ; then
  31.     cd $_gitname && git pull origin
  32.     msg "The local files are updated."
  33.   else
  34.     git clone $_gitroot
  35.   fi
  36.  
  37.   msg "GIT checkout done or server timeout"
  38.   msg "Starting make..."
  39.  
  40.   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
  41.   cd $srcdir/$_gitname-build
  42.  
  43.   msg "Starting build"
  44.   PYTHON=/usr/bin/python2
  45.   ./autogen.sh --prefix=/usr || return 1
  46.   make || return 1
  47.   make DESTDIR=$pkgdir install || return 1
  48.  
  49.   rm -rf $srcdir/$_gitname-build
  50. }
clone this paste RAW Paste Data