updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / phoronix-test-suite-git / PKGBUILD
blob187757acf985d9969437eb828c06f80e588b5260
1 # Maintainer: Jason Melton <jason.melton@gmail.com>
2 # Contributor: DuGi <dugi@irc.pl>
4 pkgname=phoronix-test-suite-git
5 pkgver=20110325
6 pkgrel=1
7 pkgdesc="The most comprehensive testing and benchmarking platform available for Linux"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url="http://www.phoronix-test-suite.com/"
11 depends=('php')
12 makedepends=('git')
13 optdepends=('php-gtk'
14             'php-curl'
15             'php-gd')
16 conflicts=('phoronix-test-suite')
17 provides=('phoronix-test-suite')
18 install=${pkgname}.install
20 _gitname="phoronix-test-suite"
21 _gitroot="http://www.phorogit.com/repo/${_gitname}.git"
23 build() {
24     cd ${srcdir}
25     
26     # Git checkout
27     if [ -d ${srcdir}/${_gitname} ] ; then
28         msg "Git checkout: Updating existing tree"
29             cd ${_gitname} && git pull origin || return 1
30         msg "Git checkout: The local files are updated."
31     else
32         msg "Git checkout: Cloning"
33         git clone ${_gitroot} || return 1
34     fi
35     msg "GIT checkout: Complete"
38 package() {
39     cd ${srcdir}/phoronix-test-suite
40     mkdir -p        ${pkgdir}/usr/bin
41     ./install-sh    ${pkgdir}/usr