1 # Maintainer: Tavian Barnes <tavianator@gmail.com>
3 pkgname=libsandglass-git
6 pkgdesc="A benchmarking library with clock-cycle resolution."
8 url="http://www.gitorious.org/libsandglass"
13 provides=('libsandglass')
14 conflicts=('libsandglass')
22 _gitroot="git://gitorious.org/libsandglass/libsandglass.git"
23 _gitname="libsandglass"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot || return 1
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 ./autogen.sh || return 1
44 ./configure --prefix=/usr || return 1
49 cd "$srcdir/$_gitname-build"
50 make DESTDIR="$pkgdir" install || return 1