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

Reaper

By: a guest on Nov 21st, 2010  |  syntax: None  |  size: 1.97 KB  |  views: 125  |  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: Alessio 'alexwizard' Sergi <sergi.alessio {at} gmail.com>
  2.  
  3. pkgname=gnome-do-bzr
  4. _realname=gnome-do
  5. pkgver=1325
  6. pkgrel=1
  7. pkgdesc="A launcher application for GNOME"
  8. arch=('i686' 'x86_64')
  9. url="https://launchpad.net/do"
  10. license=('GPL3')
  11. depends=('gnome-desktop-sharp' 'gnome-keyring-sharp' 'gtk2' 'mono-addins' \
  12.          'hicolor-icon-theme' 'ndesk-dbus-glib' 'notify-sharp-svn' 'xdg-utils')
  13. makedepends=('bzr' 'intltool')
  14. provides=(${_realname})
  15. conflicts=(${_realname})
  16. options=('!libtool' '!emptydirs')
  17. install=${pkgname}.install
  18. source=(https://bugs.launchpad.net/do/+bug/634550/+attachment/1563347/+files/cs0200.patch
  19. https://bugs.launchpad.net/do/+bug/647495/+attachment/1727779/+files/compiler_fix.patch)
  20. md5sums=(91b4dff5fb7afed4d5c61da9de62daef 263257b1d9e96dfc3858e62bbbda4302)
  21.  
  22. _bzrtrunk=lp:do
  23. _bzrmod=trunk
  24.  
  25. build() {
  26.   export MONO_SHARED_DIR=${srcdir}/.wabi
  27.   mkdir -p ${MONO_SHARED_DIR}
  28.  
  29.   cd ${srcdir}
  30.  
  31.   msg "Connecting to the server...."
  32.  
  33.   if [ ! -d ./${_bzrmod} ]; then
  34.     bzr co ${_bzrtrunk} ${_bzrmod} -r ${pkgver}
  35.   else
  36.     bzr up ${_bzrmod}
  37.   fi
  38.  
  39.   msg "BZR checkout done or server timeout"
  40.   msg "Starting make..."
  41.  
  42.   [ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
  43.   cp -r ./${_bzrmod} ./${_bzrmod}-build
  44.   cd ./${_bzrmod}-build
  45.   patch -p0 < ${srcdir}/cs0200.patch || return 1
  46.   patch -p0 < ${srcdir}/compiler_fix.patch || return 1
  47.   ./autogen.sh && ./configure --prefix=/usr --sysconfdir=/etc --disable-schemas-install || return 1
  48.   make || return 1
  49. }
  50.  
  51. package() {
  52.   cd ${srcdir}/${_bzrmod}-build
  53.  
  54.   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${pkgdir} install || return 1
  55.  
  56.   mkdir -p ${pkgdir}/usr/share/gconf/schemas
  57.   gconf-merge-schema ${pkgdir}/usr/share/gconf/schemas/${_realname}.schemas ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
  58.   rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
  59.  
  60.   rm -rf ${pkgdir}/usr/lib/gnome-do/*.mdb
  61. #  rm -rf ${srcdir}/${_bzrmod}-build
  62. }
  63.  
  64. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data