This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 1st, 2011  |  syntax: Bash  |  size: 1.09 KB  |  views: 161  |  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. # PKGBUILD
  2.  
  3. pkgname=gnome-pie-git
  4. pkgver=20111001
  5. pkgrel=1
  6. pkgdesc="A visual application launcher for gnome."
  7. arch=('i686' 'x86_64')
  8. url="https://github.com/Simmesimme/Gnome-Pie"
  9. license=('GPL')
  10. depends=('gtk2' 'gnome-menus' 'cairo' 'libgee' 'libxml2' 'libxtst' 'libunique' 'gdk-pixbuf2' 'hicolor-icon-theme')
  11. makedepends=('gcc' 'vala' 'cmake')
  12. install=(gnome-pie.install)
  13. _gitroot="git://github.com/Simmesimme/Gnome-Pie.git"
  14. _gitname="Gnome-Pie"
  15.  
  16. build() {
  17.   cd $startdir/src
  18.   msg "Connecting to GIT server...."
  19.  
  20.   if [ -d $startdir/src/$_gitname ] ; then
  21.     cd $_gitname && git pull origin
  22.     msg "The local files are updated."
  23.   else
  24.     git clone $_gitroot
  25.   fi
  26.  
  27.   msg "GIT checkout done or server timeout"
  28.  
  29.   cd $srcdir/${_gitname}
  30.   msg "Building gnome-pie"
  31.   mkdir -p build
  32.   cd build
  33.   cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  34.   make
  35. }
  36.  
  37. package() {
  38.   cd $srcdir/${_gitname}/build
  39.   make DESTDIR=${pkgdir} install
  40. }
  41.  
  42. # gnome-pie.install
  43. post_install() {
  44.   gtk-update-icon-cache
  45. }
  46.  
  47. post_upgrade() {
  48.   post_install $1
  49. }
  50.  
  51. post_remove() {
  52.   post_install $1
  53. }
  54.  
  55.  
  56.  
  57.  
clone this paste RAW Paste Data