1 # Maintainer: Sara Fauzia <sara at archlinux dot us>
2 pkgname=notmuchsync-git
5 pkgdesc="Two-way sync of notmuch tags and maildir flags"
7 url="https://github.com/spaetz/notmuchsync"
9 depends=('python2' 'notmuch')
11 provides=('notmuchsync')
12 conflicts=('notmuchsync')
14 _gitroot="http://github.com/spaetz/notmuchsync.git"
15 _gitname="notmuchsync"
19 msg "Connecting to GIT server...."
21 if [ -d ${_gitname} ] ; then
22 cd ${_gitname} && git pull origin
23 msg "The local files are updated."
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}
39 install -Dm755 "${srcdir}/${_gitname}-build/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"