updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / sftpman-gtk / PKGBUILD
blob7a6c1a03bdb9aaaf2a0a0561b60d45a6db5efa8e
1 # Maintainer: Slavi Pantaleev <s.pantaleev at gmail.com>
3 pkgname=sftpman-gtk
4 pkgver=0.3.0
5 pkgrel=4
6 pkgdesc="GTK frontend for SftpMan (application that handles sshfs/sftp file systems mounting)."
7 arch=('any')
8 url="https://github.com/spantaleev/sftpman-gtk"
9 license=('BSD')
10 depends=('gtk3' 'python-gobject' 'sftpman>=0.5.0' 'python-distribute')
11 makedepends=('git')
12 optdepends=("openssh-askpass: allows you to enter passwords during mounting [install requires session restart]")
13 install=$pkgname.install
15 git_location="git://github.com/spantaleev/sftpman-gtk.git"
16 git_branch=$pkgver
18 build() {
19         cd "$srcdir"
20         msg "Connecting to GIT server...."
22         if [ -d $pkgname ] ; then
23                 cd $pkgname
24                 # Switch back to master as we're now on a tagged branch
25                 git checkout master
26                 git pull origin
27                 msg "The local files are updated."
28                 git checkout $git_branch
29         else
30                 git clone $git_location $pkgname
31                 cd $pkgname
32                 git checkout $git_branch
33         fi
35         msg "GIT checkout done"
38 package() {
39         cd "$srcdir/$pkgname"
40         python setup.py install --root=$pkgdir/ --optimize=1
42         install -Dm 644 $srcdir/$pkgname/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
43         install -Dm 644 $srcdir/$pkgname/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
44         install -Dm 644 $srcdir/$pkgname/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE