1 # Maintainer: Patrice Peterson <runiq at archlinux dot us>
2 pkgname=mutt-notmuch-git
5 pkgdesc="Notmuch (of a) helper for Mutt"
7 url="http://upsilon.cc/~zack/blog/posts/2011/01/how_to_use_Notmuch_with_Mutt/"
9 depends=('perl' 'perl-mailtools' 'perl-mail-box' 'notmuch')
11 provides=('mutt-notmuch')
12 conflicts=('mutt-notmuch')
14 _gitroot=http://git.upsilon.cc/r/utils/mutt-notmuch.git
19 msg "Connecting to GIT server...."
21 if [[ -d "$_gitname" ]]; then
22 cd "$_gitname" && git pull origin
23 msg "The local files are updated."
25 git clone "$_gitroot" "$_gitname"
28 msg "GIT checkout done or server timeout"
29 msg "Starting build..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
40 cd "$srcdir/$_gitname-build"
41 install -Dm755 "${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
42 install -Dm644 "${_gitname}.1.gz" "${pkgdir}/usr/share/man/man1/${_gitname}.1.gz"
45 # vim:set ts=2 sw=2 et: