summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01bdcf80bf0d51fe3dba55e59a78bc7e50080e5a (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
27
28
29
30
31
32
# Maintainer: Anton Leontiev <scileont /at/ gmail.ru>
pkgname=scout-git
pkgver=1.0
pkgrel=1
pkgdesc='A CLI interface to Tomboy and Gnote'
arch=('any')
url='https://github.com/lelutin/scout'
license=('BSD')
depends=('python-setuptools' 'python-dbus')
makedepends=('git' 'pandoc')
optdepends=('tomboy: either this one' 'gnote: or that one must be installed')
provides=('scout')
conflicts=('scout')
source=('scout::git+git://github.com/lelutin/scout.git' 'scout-man.patch')
md5sums=('SKIP'
	'67bb8bbfb7370496644c737638566207')

pkgver() {
	cd ${pkgname%-git}
	printf '%s' "$(git describe --tags | sed 's/^v//;s/-/.r/;s/-/./')"
}

prepare() {
	cd ${pkgname%-git}
	patch -i "$srcdir/scout-man.patch"
}

package() {
	cd ${pkgname%-git}
	python setup.py install --root "$pkgdir"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
}