summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbb1b51c497d06da94ead16c895fc760e147b14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Slavi Pantaleev <slavi at devture.com>

pkgname=sftpman
epoch=1
pkgver=1.2.2
pkgrel=1
pkgdesc="Application that handles sshfs/sftp file systems mounting."
arch=('any')
url="https://github.com/spantaleev/sftpman"
license=('GPL3')
depends=('python' 'sshfs' 'python-setuptools')
makedepends=('git')
optdepends=('sftpman-gtk: GTK frontend')
install=$pkgname.install
source=("git+https://github.com/spantaleev/sftpman.git#tag=$pkgver")
md5sums=('SKIP')

package() {
	cd "$srcdir/$pkgname"
	python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1

	install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm 755 sleep-scripts/sleep.d/49-sftpman-unmount-all "$pkgdir/etc/pm/sleep.d/49-sftpman-unmount-all"
	install -Dm 755 sleep-scripts/system-sleep/sftpman-unmount-all.sh "$pkgdir/usr/lib/systemd/system-sleep/sftpman-unmount-all.sh"
	install -Dm 644 bash_completion.d/sftpman "$pkgdir/usr/share/bash-completion/completions/sftpman"
}