Don't like ads? PRO users don't see any ads ;-)
Guest

mountie PKGBUILD

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.75 KB  |  hits: 7  |  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=mountie
  2. pkgver=20120808
  3. pkgrel=1
  4. pkgdesc="tool for quickly mounting and unmounting devices"
  5. arch=('any')
  6. url="https://github.com/Toobkrow/mountie"
  7. license=('GPL3')
  8. depends=('dbus-python>=1.0','python=3.2','udisks')
  9. makedepends=('git')
  10.  
  11. _gitroot="https://github.com/Toobkrow/mountie.git"
  12. _gitname="master"
  13.  
  14. build() {
  15.         cd $srcdir
  16.  
  17.         if [ -d $srcdir/$pkgname ] ; then
  18.                 msg "update git"
  19.                 cd $pkgname && git pull origin
  20.         else
  21.                 msg "clone git"
  22.                 git clone $_gitroot
  23.         fi
  24. }
  25.  
  26. package() {
  27.         mkdir -p $pkdir/usr/lib/python3.2/site-packages
  28.         cp -r $srcdir/$pkgname $pkdir/usr/lib/python3.2/site-packages
  29.         mkdir -p $pkgdir/usr/bin
  30.         echo "#!/bin/bash\npython /usr/lib/python3.2/site-packages/$pkgname/mountie.py" > $pkgdir/usr/bin/mountie
  31. }