# Contributor: Andreas Schönfelder pkgname=phoronix-test-suite pkgver=2.0.0 pkgrel=1 pkgdesc="The most comprehensive testing and benchmarking platform available for Linux" arch=('any') license=('GPL3') url="http://www.phoronix-test-suite.com/" depends=('php') optdepends=('php-gtk') install=(${pkgname}.install) source=(http://www.phoronix.net/downloads/phoronix-test-suite/releases/phoronix-test-suite-$pkgver.tar.gz) md5sums=('f9149f16665345146f3692ec3aa3a267') build() { cd $startdir/src/phoronix-test-suite patch pts-core/library/pts-includes-install_dependencies.php < echo shell_exec("cd " . SCRIPT_DISTRO_DIR . " && sh install-" . \$distribution . "-packages.sh --asdeps " . \$install_objects); EOF install -d $startdir/pkg/usr/bin $startdir/pkg/usr/share/phoronix-test-suite sed -e "s/^export PTS_DIR=.*/export PTS_DIR=\/usr\/share\/phoronix-test-suite/g" -i phoronix-test-suite install -m755 phoronix-test-suite $startdir/pkg/usr/bin/ cp -r pts/ $startdir/pkg/usr/share/phoronix-test-suite/ rm -f $startdir/pkg/usr/share/phoronix-test-suite/pts/etc/scripts/package-build-* cp -r pts-core/ $startdir/pkg/usr/share/phoronix-test-suite/ }