updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mutt-notmuch-git / PKGBUILD
blob7c7903c75f8dda69fd7906eb2d15f91cc063f761
1 # Maintainer: Patrice Peterson <runiq at archlinux dot us>
2 pkgname=mutt-notmuch-git
3 pkgver=20120124
4 pkgrel=1
5 pkgdesc="Notmuch (of a) helper for Mutt"
6 arch=('any')
7 url="http://upsilon.cc/~zack/blog/posts/2011/01/how_to_use_Notmuch_with_Mutt/"
8 license=('GPL3')
9 depends=('perl' 'perl-mailtools' 'perl-mail-box' 'notmuch')
10 makedepends=('git')
11 provides=('mutt-notmuch')
12 conflicts=('mutt-notmuch')
14 _gitroot=http://git.upsilon.cc/r/utils/mutt-notmuch.git
15 _gitname=mutt-notmuch
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [[ -d "$_gitname" ]]; then
22     cd "$_gitname" && git pull origin
23     msg "The local files are updated."
24   else
25     git clone "$_gitroot" "$_gitname"
26   fi
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"
35   make
36   gzip ${_gitname}.1
39 package() {
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: