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

granite

By: a guest on Apr 11th, 2013  |  syntax: Bash  |  size: 0.88 KB  |  views: 419  |  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. pkgname=granite-bzr
  2. pkgver=556
  3. pkgrel=1
  4. pkgdesc="A development library for elementary development"
  5. arch=('i686' 'x86_64')
  6. url="https://launchpad.net/granite"
  7. license=('LGPL3')
  8. groups=('pantheon')
  9. depends=('glib2' 'gobject-introspection' 'gtk3' 'libgee' 'hicolor-icon-theme')
  10. makedepends=('bzr' 'cmake' 'vala')
  11. conflicts=('granite')
  12. provides=('granite')
  13. install=granite.install
  14. source=("bzr+http://bazaar.launchpad.net/~elementary-pantheon/granite/granite/")
  15. md5sums=('SKIP')
  16.  
  17. pkgver() {
  18.   cd "$srcdir/granite"
  19.   bzr revno
  20. }
  21.  
  22. build() {
  23.   cd "$srcdir/granite"
  24.  
  25.   sed -i 's/gee-1.0/gee-0.8/;s/Gee-1.0/Gee-0.8/' CMakeLists.txt
  26.  
  27.   rm -rf build/
  28.   mkdir build
  29.   cd build
  30.  
  31.   CFLAGS="${CFLAGS} -Wno-deprecated-declarations"
  32.   cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DICON_UPDATE=OFF
  33.   make
  34. }
  35.  
  36. package() {
  37.   cd "$srcdir/granite/build"
  38.   make DESTDIR="$pkgdir/" install
  39. }
clone this paste RAW Paste Data