diff options
Diffstat (limited to '~xihh/notmuch-address/PKGBUILD')
-rw-r--r-- | ~xihh/notmuch-address/PKGBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/~xihh/notmuch-address/PKGBUILD b/~xihh/notmuch-address/PKGBUILD new file mode 100644 index 000000000..908f40b22 --- /dev/null +++ b/~xihh/notmuch-address/PKGBUILD @@ -0,0 +1,58 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: Joshua Ismael Haase Hernandez <joshpar@stravy> +pkgname=notmuch-address +pkgver=20120201 +pkgrel=1 +epoch= +pkgdesc="Address completion for notmuch" +arch=('any') +url="" +license=('GPL') +groups=() +depends=(python2) +makedepends=(git) +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=() +md5sums=() +noextract=() +#generate with 'makepkg -g' +_gitroot=http://commonmeasure.org/~jkr/git/notmuch_addresses.git +_gitname=notmuch-adress + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + # + # BUILD HERE + # +} + +package() { + cd "$srcdir/$_gitname-build" + sed -i "s_#!/usr/bin/env python_#!/usr/bin/env python2_" notmuch_addresses.py + install -d $pkgdir/usr/bin + install -m755 notmuch_addresses.py $pkgdir/usr/bin/notmuch_addresses.py +}
\ No newline at end of file |