updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / dbench-git / PKGBUILD
blob28ada413753ed6a6fd7e1365ed7229532b510ccf
1 # Maintainer: Antoine Lubineau <antoine@lubignon.info>
3 pkgname=dbench-git
4 pkgver=20110123
5 pkgrel=1
6 pkgdesc="A filesystem benchmark based on load patterns"
7 arch=('i686' 'x86_64')
8 url="http://dbench.samba.org/"
9 license=('GPL3')
10 depends=('smbclient')
11 makedepends=('git')
13 _gitroot="git://git.samba.org/sahlberg/dbench.git"
14 _gitname="dbench"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server..."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   ./autogen.sh
35   ./configure --prefix=/usr
36   make
39 package() {
40   cd "$srcdir/$_gitname-build"
41   make DESTDIR="$pkgdir/" install
42