mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
31 lines
1.3 KiB
Bash
31 lines
1.3 KiB
Bash
# Contributor: Andreas Schönfelder <passtschu at freenet dot de>
|
|
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 <<EOF
|
|
213c213
|
|
< echo shell_exec("cd " . SCRIPT_DISTRO_DIR . " && sh install-" . \$distribution . "-packages.sh " . \$install_objects);
|
|
---
|
|
> 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/
|
|
}
|