updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / alot / PKGBUILD
blob64e7f814436b5e2d25f25b5588eaae5407f1117f
1 # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
2 pkgname=alot
3 pkgver=20111211
4 pkgrel=1
5 pkgdesc="A Terminal GUI for notmuch"
6 arch=('any')
7 url="https://github.com/pazz/alot"
8 license=('GPL')
9 depends=('python-urwid-git' 'notmuch-git')
10 makedepends=('git')
12 _gitroot="https://github.com/pazz/alot.git"
13 _gitname="master"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
34         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
35         $(find ./ -name '*.py')
38   python2 setup.py install --prefix=${pkgdir}/usr