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

Untitled

By: a guest on Jun 5th, 2010  |  syntax: None  |  size: 3.60 KB  |  views: 142  |  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=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 # Contributor: <arsenm2@rpi.edu>
  68. pkgname=gir-repository-git
  69. pkgver=20100205
  70. pkgrel=1
  71. pkgdesc="GIR Repository"
  72. arch=(i686 x86_64)
  73. url="http://live.gnome.org/GObjectIntrospection/"
  74. license=('LGPL')
  75. depends=('glib2' 'gobject-introspection-git')
  76.  
  77. # not really optional if you want to be able to do anything with it,
  78. # but technically not required.
  79.  
  80. optdepends=('avahi'
  81.             'atk'
  82.             'cairo'
  83.             'clutter'
  84.             'clutter-cairo'
  85.             'clutter-gtk'
  86.             'dbus'
  87.             'dbus-glib'
  88.             'freetype2'
  89.             'gtk2'
  90.             'gtksourceview'
  91.             'gstreamer0.10'
  92.             'gvfs'
  93.             'libsoup'
  94.             'libxft'
  95.             'libxml2'
  96.             'libwebkit'
  97.             'pango'
  98.             'gtk-doc'
  99.             )
  100. makedepends=('git' 'python' 'libtool' 'pkgconfig' 'autoconf' 'gnome-common')
  101. provides=('gir-repository' 'gir-repository-git')
  102. conflicts=('gir-repository' 'gir-repository-svn')
  103. replaces=('gir-repository-svn' 'gir-repository')
  104. backup=()
  105. groups=()
  106. options=(!makeflags docs)
  107. install=
  108. source=()
  109. noextract=()
  110. md5sums=()
  111.  
  112. _gitroot="git://git.gnome.org/gir-repository"
  113. _gitname="gir-repository"
  114.  
  115. build() {
  116.   cd $srcdir
  117.   msg "Connecting to git.gnome.org GIT server...."
  118.  
  119.   if [ -d $srcdir/$_gitname ] ; then
  120.     cd $_gitname && git pull origin
  121.     msg "The local files are updated."
  122.   else
  123.     git clone $_gitroot
  124.   fi
  125.  
  126.   msg "GIT checkout done or server timeout"
  127.   msg "Starting make..."
  128.  
  129.   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
  130.   cd $srcdir/$_gitname-build
  131.  
  132.   msg "Starting build"
  133.   ./autogen.sh --with-skipped-gir-modules=Gst,Poppler,WebKit,GSSDP,Unique,GMenu,Wnck,GooCanvas,Notify,GnomeKeyring
  134.   ./configure --prefix=/usr || return 1
  135.   make || return 1
  136.   make DESTDIR=$pkgdir install || return 1
  137.  
  138.   rm -rf $srcdir/$_gitname-build
  139. }
  140.   ./configure --prefix=/usr || return 1
  141.   make || return 1
  142.   make DESTDIR=$pkgdir install || return 1
  143.  
  144.   rm -rf $srcdir/$_gitname-build
  145. }
clone this paste RAW Paste Data