updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / notmuchsync-git / PKGBUILD
blob6ca63f4e870d7382b8ce3b5698ca80d4ad458ba2
1 # Maintainer: Sara Fauzia <sara at archlinux dot us>
2 pkgname=notmuchsync-git
3 pkgver=20110414
4 pkgrel=1
5 pkgdesc="Two-way sync of notmuch tags and maildir flags"
6 arch=(i686 x86_64)
7 url="https://github.com/spaetz/notmuchsync"
8 license=('GPL2')
9 depends=('python2' 'notmuch')
10 makedepends=('git')
11 provides=('notmuchsync')
12 conflicts=('notmuchsync')
14 _gitroot="http://github.com/spaetz/notmuchsync.git"
15 _gitname="notmuchsync"
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}
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "${srcdir}/${_gitname}-build"
32   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
33   cd "${srcdir}/${_gitname}-build"
35   sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' ${_gitname}
38 package(){
39   install -Dm755 "${srcdir}/${_gitname}-build/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"