Advertisement
Guest User

Untitled

a guest
Oct 7th, 2010
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  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. export PYTHON=python2
  45. ./autogen.sh
  46. ./configure --prefix=/usr || return 1
  47. make || return 1
  48. make DESTDIR=$pkgdir install || return 1
  49.  
  50. rm -rf $srcdir/$_gitname-build
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement