SHARE
TWEET

dvcs-autosync-git PKGBUILD

danielepaolella Jul 10th, 2013 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Daniele Paolella <danielepaolella@email.it>
  2. # Contributor: Dieter P
  3. pkgname=(dvcs-autosync-git
  4.          dvcs-autosync-devel-git)
  5. pkgver=0.5.192.4bea986
  6. pkgrel=1
  7. pkgdesc="A personal Dropbox replacement based on Git"
  8. arch=('any')
  9. url="http://mayrhofer.eu.org/dvcs-autosync"
  10. license=('GPL')
  11. depends=('python2-pyinotify' 'xmpppy' 'python2')
  12. makedepends=('git')
  13. source=('git://gitorious.org/dvcs-autosync/dvcs-autosync.git')
  14. md5sums=('SKIP')
  15.  
  16. pkgver() {
  17.         cd "$srcdir/dvcs-autosync"
  18.         git checkout master 2> /dev/null
  19.         echo 0.5.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  20. }
  21.  
  22. pkgver_dvcs-autosync-devel-git() {
  23.         cd "$srcdir/dvcs-autosync"
  24.         git checkout origin/devel 2> /dev/null
  25.         echo 0.6.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  26. }
  27.  
  28. package_dvcs-autosync-git() {
  29.         pkgver=$(pkgver)
  30.         cd "$srcdir/dvcs-autosync"
  31.         git checkout master
  32.         python2 setup.py install --root="$pkgdir" --optimize=1
  33. }
  34.  
  35. package_dvcs-autosync-devel-git() {
  36.         pkgver=$(pkgver_dvcs-autosync-devel-git)
  37.         conflicts=('dvcs-autosync-git')
  38.         cd "$srcdir/dvcs-autosync"
  39.         git checkout origin/devel
  40.         python2 setup.py install --root="$pkgdir" --optimize=1
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top