Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 5th, 2010  |  syntax: None  |  size: 1.99 KB  |  views: 153  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: <arsenm2@rpi.edu>
  2. pkgname=gir-repository-git
  3. pkgver=20100205
  4. pkgrel=1
  5. pkgdesc="GIR Repository"
  6. arch=(i686 x86_64)
  7. url="http://live.gnome.org/GObjectIntrospection/"
  8. license=('LGPL')
  9. depends=('glib2' 'gobject-introspection-git')
  10.  
  11. # not really optional if you want to be able to do anything with it,
  12. # but technically not required.
  13.  
  14. optdepends=('avahi'
  15.             'atk'
  16.             'cairo'
  17.             'clutter'
  18.             'clutter-cairo'
  19.             'clutter-gtk'
  20.             'dbus'
  21.             'dbus-glib'
  22.             'freetype2'
  23.             'gtk2'
  24.             'gtksourceview'
  25.             'gstreamer0.10'
  26.             'gvfs'
  27.             'libsoup'
  28.             'libxft'
  29.             'libxml2'
  30.             'libwebkit'
  31.             'pango'
  32.             'gtk-doc'
  33.             )
  34. makedepends=('git' 'python' 'libtool' 'pkgconfig' 'autoconf' 'gnome-common')
  35. provides=('gir-repository' 'gir-repository-git')
  36. conflicts=('gir-repository' 'gir-repository-svn')
  37. replaces=('gir-repository-svn' 'gir-repository')
  38. backup=()
  39. groups=()
  40. options=(!makeflags docs)
  41. install=
  42. source=()
  43. noextract=()
  44. md5sums=()
  45.  
  46. _gitroot="git://git.gnome.org/gir-repository"
  47. _gitname="gir-repository"
  48.  
  49. build() {
  50.   cd $srcdir
  51.   msg "Connecting to git.gnome.org GIT server...."
  52.  
  53.   if [ -d $srcdir/$_gitname ] ; then
  54.     cd $_gitname && git pull origin
  55.     msg "The local files are updated."
  56.   else
  57.     git clone $_gitroot
  58.   fi
  59.  
  60.   msg "GIT checkout done or server timeout"
  61.   msg "Starting make..."
  62.  
  63.   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
  64.   cd $srcdir/$_gitname-build
  65.  
  66.   msg "Starting build"
  67.   ./autogen.sh --with-skipped-gir-modules=Gst,Poppler,WebKit,GSSDP,Unique,GMenu,Wnck,GooCanvas,Notify,GnomeKeyring
  68.   ./configure --prefix=/usr || return 1
  69.   make || return 1
  70.   make DESTDIR=$pkgdir install || return 1
  71.  
  72.   rm -rf $srcdir/$_gitname-build
  73. }
  74.   ./configure --prefix=/usr || return 1
  75.   make || return 1
  76.   make DESTDIR=$pkgdir install || return 1
  77.  
  78.   rm -rf $srcdir/$_gitname-build
  79. }