updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / shet-c-client-git / PKGBUILD
blob8221649689f2a71346e6fd383177d60572d93900
1 # Maintainer: Thomas Nixon <tom@tomn.co.uk>
2 pkgname=shet-c-client-git
3 pkgver=20110203
4 pkgrel=1
5 pkgdesc="Command line clients for SHET, written in C."
6 arch=("i686")
7 url="https://github.com/18sg/SHETCClient"
8 license=('MIT')
9 depends=('json-c' 'glibc' 'shet-c-git')
10 makedepends=('git' 'scons' 'json-c' 'shet-c-git')
12 _gitroot="git://github.com/18sg/SHETCClient.git"
13 _gitname="SHETCClient"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   scons installdir=/usr
36 package() {
37   cd "$srcdir/$_gitname-build"
38   scons installdir="$pkgdir/usr" install
39