1 # Maintainer: Kazuo Teramoto <kaz.rag at gmail.com>
5 pkgdesc="afew is an initial tagging script for notmuch mail"
7 url="https://github.com/teythoon/afew"
9 depends=('python2' 'notmuch' 'dbacl')
12 md5sums=('295b245540aa61538f9a3556c4be846c')
13 sha256sums=('7e4d52625b636bc811d91189d1175b3fa44c4258f5f518f4fc5b489ca82e87b0')
15 _gitroot='https://github.com/teythoon/afew.git'
20 msg "Connecting to GIT server...."
22 if [[ -d "$_gitname" ]]; then
23 cd "$_gitname" && git pull origin
24 msg "The local files are updated."
26 git clone "$_gitroot" "$_gitname"
29 msg "GIT checkout done or server timeout"
30 msg "Starting build..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
36 python2 setup.py build
40 cd "$srcdir/$_gitname-build"
41 python2 setup.py install --prefix="$pkgdir/usr"
43 install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
46 # vim:set ts=2 sw=2 et: