updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / afew-git / PKGBUILD
blob5e4c70844ba73b7f4d1f1d3db423e3fc4266e6c6
1 # Maintainer: Kazuo Teramoto <kaz.rag at gmail.com>
2 pkgname=afew-git
3 pkgver=20111214
4 pkgrel=1
5 pkgdesc="afew is an initial tagging script for notmuch mail"
6 arch=(any)
7 url="https://github.com/teythoon/afew"
8 license=('custom:BSD')
9 depends=('python2' 'notmuch' 'dbacl')
10 makedepends=('git')
11 source=('LICENSE')
12 md5sums=('295b245540aa61538f9a3556c4be846c')
13 sha256sums=('7e4d52625b636bc811d91189d1175b3fa44c4258f5f518f4fc5b489ca82e87b0')
15 _gitroot='https://github.com/teythoon/afew.git'
16 _gitname='afew'
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [[ -d "$_gitname" ]]; then
23     cd "$_gitname" && git pull origin
24     msg "The local files are updated."
25   else
26     git clone "$_gitroot" "$_gitname"
27   fi
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
39 package() {
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: