updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libsandglass-git / PKGBUILD
blob252966eed46c866350592d92253280eace7a08fe
1 # Maintainer: Tavian Barnes <tavianator@gmail.com>
3 pkgname=libsandglass-git
4 pkgver=20100223
5 pkgrel=1
6 pkgdesc="A benchmarking library with clock-cycle resolution."
7 arch=('i686' 'x86_64')
8 url="http://www.gitorious.org/libsandglass"
9 license=('LGPL3')
10 groups=()
11 depends=('glibc')
12 makedepends=()
13 provides=('libsandglass')
14 conflicts=('libsandglass')
15 replaces=()
16 backup=()
17 options=('!libtool')
18 install=
19 source=()
20 noextract=()
22 _gitroot="git://gitorious.org/libsandglass/libsandglass.git"
23 _gitname="libsandglass"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot || return 1
34   fi
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
45   make || return 1
48 package() {
49   cd "$srcdir/$_gitname-build"
50   make DESTDIR="$pkgdir" install || return 1