updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / hektor-git / PKGBUILD
blob01a134108ace1bd7877741627468ceeaabfa6c10
1 # Contributer: Mick Koch <kchmck@gmail.com>
3 pkgname="hektor-git"
4 pkgver=20100516
5 pkgrel=1
6 pkgdesc="Hughesnet 'fair access policy' tool"
7 arch=("i686" "x86_64")
8 url="http://github.com/kchmck/hektor"
9 license=("GPL3")
10 depends=("curl" "lua" "libxdg-basedir")
11 makedepends=("git" "pkgconfig")
12 provides=("hektor")
14 _gitroot="git://github.com/kchmck/hektor.git"
15 _gitname="hektor"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to git server..."
21   if [ ! -d $_gitname ]; then
22     git clone --depth 1 $_gitroot $_gitname
23     cd $_gitname
24   else
25     cd $_gitname
26     git pull
27   fi
29   make || return 1
30   make DESTDIR="$pkgdir" install