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

dolphin-dropbox-plugin-hg

By: ava1ar on Apr 15th, 2013  |  syntax: Bash  |  size: 0.79 KB  |  views: 158  |  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: K900 <k0009000@gmail.com>
  2. # Contrubutor: ava1ar (mail(dot)avatar(at)gmail(dot)com)
  3.  
  4. pkgname=dolphin-dropbox-plugin-hg
  5. pkgver=27
  6. pkgrel=1
  7. pkgdesc="KDE Dolphin plugin for Dropbox"
  8. arch=('i686' 'x86_64')
  9. license=('GPL')
  10. depends=('kdebase-dolphin' 'dropbox')
  11. makedepends=('mercurial' 'cmake' 'automoc4')
  12. url="https://bitbucket.org/cancel/dolphin-dropbox-plugin"
  13. source=("dolphin-dropbox-plugin::hg+https://bitbucket.org/cancel/dolphin-dropbox-plugin")
  14. _hgrepo="dolphin-dropbox-plugin"
  15. md5sums=('SKIP')
  16.  
  17. pkgver() {
  18.   cd local_repo
  19.   hg identify -ni | awk 'BEGIN{OFS=".";} {print $2,$1}'
  20. }
  21.  
  22. build() {
  23.   cd $srcdir
  24.   rm -rf build
  25.   mkdir build
  26.   cd build
  27.   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../$_hgrepo
  28.   make
  29. }
  30.  
  31. package() {
  32.   cd $srcdir/build
  33.   make DESTDIR=$pkgdir install
  34. }