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

Plexy PKGBUILD

By: a guest on Sep 8th, 2011  |  syntax: Bash  |  size: 1.08 KB  |  views: 71  |  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: Max Gonzih <iam@gonzih.org>
  2. # Contributor Diego José <diegoxter1006@gmail.com>
  3. pkgname=plexydesk-git
  4. pkgver=20110908
  5. pkgrel=1
  6. pkgdesc="PlexyDesk is a Desktop extension which lets you efficiently use your desktop background."
  7. arch=('i686' 'x86_64')
  8. url="http://www.plexyplanet.org/"
  9. license=('GPL')
  10. depends=('qt')
  11. makedepends=('git' 'cmake')
  12. provides=('plexydesk')
  13. conflicts=('plexydesk' 'plexydesk-svn')
  14.  
  15. _gitroot=https://github.com/siraj/plexydesk.git
  16. _gitname=plexydesk
  17.  
  18. build() {
  19.   cd "$srcdir"
  20.   msg "Connecting to GIT server...."
  21.  
  22.   if [[ -d "$_gitname" ]]; then
  23.     cd "$_gitname" && git pull origin
  24.     msg "The local files are updated."
  25.   else
  26.     git clone "$_gitroot" "$_gitname"
  27.   fi
  28.  
  29.   msg "GIT checkout done or server timeout"
  30.   msg "Starting build..."
  31.  
  32.   rm -rf "$srcdir/$_gitname-build"
  33.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  34.   cd "$srcdir/$_gitname-build"
  35.  
  36.   cmake -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_BUILD_TYPE=Release .
  37.   make
  38. }
  39.  
  40. package() {
  41.   cd "$srcdir/$_gitname-build"
  42.   make DESTDIR="$pkgdir/" install
  43. }
clone this paste RAW Paste Data