updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / urxvt-autocomplete-all-the-things-git / PKGBUILD
blob2f825cf683442fc02f751e82e3fd76d1b240660e
1 # Maintainer: Wojciech Siewierski <darkvifon at gmail dot com>
2 # Contributor: Wojciech Siewierski <darkvifon at gmail dot com>
3 pkgname=urxvt-autocomplete-all-the-things-git
4 pkgver=20120115
5 pkgrel=1
6 pkgdesc="an urxvt plugin allowing user to easily complete words"
7 url="https://github.com/Vifon/autocomplete-ALL-the-things"
8 arch=('any')
9 license=('GPL')
10 depends=('rxvt-unicode')
11 makedepends=('git')
12 install='autocomplete-ALL-the-things.install'
14 _gitroot="git://github.com/Vifon/autocomplete-ALL-the-things.git"
15 _gitname="autocomplete-ALL-the-things"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ]; then
22     cd $_gitname && git pull origin --depth=1
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname --depth=1
26   fi
28   msg "GIT checkout done or server timeout"
29   rm -rf "$srcdir/$_gitname-build"
30   cp -r  "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd     "$srcdir/$_gitname-build"
34 package() {
35   cd "$srcdir/$_gitname-build"
36   install -D -m 644 autocomplete-ALL-the-things $pkgdir/usr/lib/urxvt/perl/autocomplete-ALL-the-things