blob: eed63d29ce2c7aeed79d53e9130c3d8af5b8a6f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Contributor: aimileus <me at aimileus dot nl>
# Maintainer: Fabio 'Lolix' Loli <lolix at disroot.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Schönfelder <passtschu at freenet dot de>
pkgname=phoronix-test-suite
pkgver=9.2.1
pkgrel=1
pkgrel+=.par1
pkgdesc="The most comprehensive testing and benchmarking platform available for Linux without the nonfree tests"
arch=(any)
license=(GPL3)
url="http://www.phoronix-test-suite.com/"
depends=(php)
optdepends=('php-gd'
'sqlite3: required when running a Phoromatic server.'
'gcc-fortran: required for universe-cli test suite'
'blas: required for universe-cli test suite'
'lapack: required for universe-cli test suite'
'portaudio: required for universe-cli test suite'
'unzip: required for universe-cli test suite'
'mesa-demos: required for universe-cli test suite'
'openmpi: required for universe-cli test suite')
source=("$pkgname-$pkgver.tar.gz::https://github.com/phoronix-test-suite/phoronix-test-suite/archive/v${pkgver}.tar.gz"
"https://raw.githubusercontent.com/FabioLolix/AUR-artifacts/master/phoronix-test-suite-launcher.patch"
"0001-Don-t-download-online-tests.patch")
sha256sums=('28acbcb6c5b8eb27c20329cd1a5ea3f1a27abb69812c4b1eeade4b91c89fc7d8'
'577326343d0303a59fd469c3f9c9740e756dd59c0660c54363b62d6fd1cee26d'
'SKIP')
options=(!strip)
test_profiles=('build-apache-1.5.1'
'build-eigen-1.0.0'
'build-gcc-1.1.2'
'build-llvm-1.1.0'
'build-php-1.4.0')
# Issues:
# build-firefox: source code not FSDG compliant
# build-imagemagick: TODO: rebuild the tarball from official source code
# build-linux-kernel: source code not FSDG compliant
# build-mplayer: TODO: make sure that it doesn't build with FAAC
# build-webkitfltk: TODO: review the project source code
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch phoronix-test-suite -i "${srcdir}/phoronix-test-suite-launcher.patch"
patch -p1 -i "${srcdir}/0001-Don-t-download-online-tests.patch"
# Only keep tests that meet the following requirements:
# - No dependencies on nonfree software
# - No binaries
# - Source comming from official projects potentially with additional patches
# to be able to understand what was changed.
mkdir -p ob-cache_/test-profiles/pts/
for p in ${test_profiles[@]} ; do
# Local works with the current patch
# TODO: make it appear under pts
mv ob-cache/test-profiles/pts/${p} ob-cache_/test-profiles/local/
done
rm -rf ob-cache
mv ob-cache_ ob-cache
}
package() {
cd "$srcdir/$pkgname-$pkgver"
./install-sh $pkgdir/usr
rm -r "${pkgdir}"/usr/share/phoronix-test-suite/deploy
rm -rf "${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/{dependency-handlers,scripts,xml}/{*.php,*.sh,*.xml}
install -D "${srcdir}/phoronix-test-suite-${pkgver}"/pts-core/external-test-dependencies/dependency-handlers/arch_dependency_handler.php \
"${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/dependency-handlers/arch_dependency_handler.php
install -D "${srcdir}/phoronix-test-suite-${pkgver}"/pts-core/external-test-dependencies/scripts/install-arch-packages.sh \
"${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/scripts/install-arch-packages.sh
install -D "${srcdir}/phoronix-test-suite-${pkgver}"/pts-core/external-test-dependencies/xml/arch-packages.xml \
"${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/xml/arch-packages.xml
install -D "${srcdir}/phoronix-test-suite-${pkgver}"/pts-core/external-test-dependencies/xml/generic-packages.xml \
"${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/xml/generic-packages.xml
install "${srcdir}/phoronix-test-suite-${pkgver}"/phoronix-test-suite \
"${pkgdir}"/usr/bin/phoronix-test-suite
ln -s /usr/bin/phoronix-test-suite "$pkgdir/usr/bin/pts"
}
|