1 # Maintainer: Thomas Nixon <tom@tomn.co.uk>
2 pkgname=shet-c-client-git
5 pkgdesc="Command line clients for SHET, written in C."
7 url="https://github.com/18sg/SHETCClient"
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"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
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"
37 cd "$srcdir/$_gitname-build"
38 scons installdir="$pkgdir/usr" install