updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / snip-git / PKGBUILD
blob4137dd6e6df4d3ded48a8e9da8e2def5405abb4b
1 # Contributor: Dieter Plaetinck <dieter@plaetinck.be>
2 pkgname=snip-git
3 pkgver=20090912
4 pkgrel=1
5 pkgdesc="Snip: A lightweight snippets expander"
6 arch=('i686' 'x86_64')
7 url="http://github.com/Dieterbe/snip/"
8 license=('GPL3')
9 depends=('dmenu' 'xdotool' 'zenity')
10 makedepends=('git')
11 provides=('snip')
12 source=()
13 md5sums=()
15 _gitroot="git://github.com/Dieterbe/snip.git"
17 build() {
18   msg "Connecting to GIT server..."
19   if [[ -d $srcdir/$pkgname-$pkgver ]]; then
20     cd $srcdir/$pkgname-$pkgver && git pull origin || return 1
21   else
22     git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
23     cd $srcdir/$pkgname-$pkgver
24   fi
26   msg "GIT checkout done or server timeout"
28         make DESTDIR="$pkgdir/usr" install
31 # vim:set ts=2 sw=2 et: