blob: 4c9813de9de13b910807d7f6854a996f1f1bf445 (
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
33
34
35
36
37
38
39
40
41
|
# Maintainer: Kazuo Teramoto <kaz.rag at gmail.com>
pkgname=afew-git
pkgver=0.237.162d9fa
pkgrel=1
epoch=1
pkgdesc="afew is an initial tagging script for notmuch mail"
arch=(any)
url="https://github.com/teythoon/afew"
license=('custom:BSD')
depends=('python' 'notmuch' 'dbacl' 'python-chardet' 'python-setuptools')
makedepends=('git' 'python-sphinx')
source=('LICENSE' 'git://github.com/teythoon/afew.git')
md5sums=('295b245540aa61538f9a3556c4be846c'
'SKIP')
pkgver() {
cd "$srcdir/afew"
echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}
build() {
cd "$srcdir/afew"
python setup.py build
make -C docs man
}
package() {
cd "$srcdir/afew"
python setup.py install --root="$pkgdir" --optimize=1
install -D -m 644 docs/build/man/afew.1 "$pkgdir/usr/share/man/man1/afew.1"
install -D -m644 "$srcdir/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|