
mountie PKGBUILD
By: a guest on
Aug 8th, 2012 | syntax:
None | size: 0.75 KB | hits: 7 | expires: Never
pkgname=mountie
pkgver=20120808
pkgrel=1
pkgdesc="tool for quickly mounting and unmounting devices"
arch=('any')
url="https://github.com/Toobkrow/mountie"
license=('GPL3')
depends=('dbus-python>=1.0','python=3.2','udisks')
makedepends=('git')
_gitroot="https://github.com/Toobkrow/mountie.git"
_gitname="master"
build() {
cd $srcdir
if [ -d $srcdir/$pkgname ] ; then
msg "update git"
cd $pkgname && git pull origin
else
msg "clone git"
git clone $_gitroot
fi
}
package() {
mkdir -p $pkdir/usr/lib/python3.2/site-packages
cp -r $srcdir/$pkgname $pkdir/usr/lib/python3.2/site-packages
mkdir -p $pkgdir/usr/bin
echo "#!/bin/bash\npython /usr/lib/python3.2/site-packages/$pkgname/mountie.py" > $pkgdir/usr/bin/mountie
}