1 # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
5 pkgdesc="A Terminal GUI for notmuch"
7 url="https://github.com/pazz/alot"
9 depends=('python-urwid-git' 'notmuch-git')
12 _gitroot="https://github.com/pazz/alot.git"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
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