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

geary PKGBUILD

By: matt-h on May 1st, 2012  |  syntax: Bash  |  size: 1.23 KB  |  views: 52  |  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. # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
  2.  
  3. pkgname=geary-git
  4. pkgver=20120501
  5. pkgrel=1
  6. pkgdesc="A new lightweight, easy-to-use, feature-rich email client (pre-alpha version)"
  7. arch=(i686 x86_64)
  8. url="http://redmine.yorba.org/projects/geary"
  9. license=('GPL')
  10. depends=('sqlheavy-git' 'libunique3' 'gmime' 'libwebkit3' 'libgnome-keyring' 'gtksourceview3' 'libgee' 'dconf')
  11. makedepends=('vala' 'git')
  12. install=geary.install
  13.  
  14. _gitroot="git://yorba.org/geary"
  15. _gitname="geary"
  16.  
  17. build() {
  18.         cd "$srcdir"
  19.  
  20.         msg "Connecting to GIT server...."
  21.  
  22.         if [ -d $srcdir/$_gitname ]; then
  23.                 cd $_gitname && git pull origin
  24.                 msg "The local files are updated."
  25.         else
  26.                 git clone --depth=0 $_gitroot $_gitname
  27.         fi
  28.  
  29.         msg "GIT checkout done or server timeout"
  30.  
  31.         rm -rf "$srcdir/$_gitname-build"
  32.         cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  33.         cd "$srcdir/$_gitname-build/"
  34.         rm -rf .git .gitmodules
  35.         find . -type f -name .gitignore -delete
  36.         sed s/sqlheavy-0.1/sqlheavy-0.2/g src/CMakeLists.txt > src/CMakeLists.txt.tmp
  37.         mv src/CMakeLists.txt.tmp src/CMakeLists.txt
  38.  
  39.         cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
  40.         make
  41. }
  42.  
  43. package() {
  44.         cd "$srcdir/$_gitname-build"
  45.         make install DESTDIR="$pkgdir"
  46. }
clone this paste RAW Paste Data