Advertisement
Guest User

Untitled

a guest
Dec 1st, 2018
209
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=phoronix-test-suite
  2. pkgver=8.4.0
  3. pkgrel=1
  4. pkgdesc="The most comprehensive testing and benchmarking platform available for Linux"
  5. arch=('any')
  6. license=('GPL3')
  7. url="http://www.phoronix-test-suite.com/"
  8. depends=('php')
  9. optdepends=('php-gd'
  10. 'sqlite3: required when running a Phoromatic server.'
  11. 'gcc-fortran: required for universe-cli test suite'
  12. 'blas: required for universe-cli test suite'
  13. 'lapack: required for universe-cli test suite'
  14. 'portaudio: required for universe-cli test suite'
  15. 'unzip: required for universe-cli test suite'
  16. 'mesa-demos: required for universe-cli test suite'
  17. 'openmpi: required for universe-cli test suite')
  18. install=${pkgname}.install
  19. source=("$pkgname-$pkgver.tar.gz::https://phoronix-test-suite.com/releases/${pkgname}-${pkgver}.tar.gz")
  20. sha256sums=('d64381d88c420a7a7780bce0cd30cccf3dba164813fbff2f3a27e7f64a58e3da')
  21.  
  22. package() {
  23. cd "$srcdir/$pkgname"
  24. ./install-sh $pkgdir/usr
  25.  
  26. rm -r "${pkgdir}"/usr/share/phoronix-test-suite/deploy
  27. rm -rf "${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/{dependency-handlers,scripts,xml}/{*.php,*.sh,*.xml}
  28.  
  29. install -D "${srcdir}/phoronix-test-suite"/pts-core/external-test-dependencies/dependency-handlers/arch_dependency_handler.php \
  30. "${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/dependency-handlers/arch_dependency_handler.php
  31.  
  32. install -D "${srcdir}/phoronix-test-suite"/pts-core/external-test-dependencies/scripts/install-arch-packages.sh \
  33. "${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/scripts/install-arch-packages.sh
  34.  
  35. install -D "${srcdir}/phoronix-test-suite"/pts-core/external-test-dependencies/xml/arch-packages.xml \
  36. "${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/xml/arch-packages.xml
  37.  
  38. install -D "${srcdir}/phoronix-test-suite"/pts-core/external-test-dependencies/xml/generic-packages.xml \
  39. "${pkgdir}"/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/xml/generic-packages.xml
  40.  
  41. sed -i "s#--noconfirm#--noconfirm --asdeps#" ${pkgdir}/usr/share/phoronix-test-suite/pts-core/external-test-dependencies/scripts/install-arch-packages.sh
  42. sed -e "s/^export PTS_DIR=.*/export PTS_DIR=\/usr\/share\/phoronix-test-suite/g" -i ${pkgdir}/usr/bin/phoronix-test-suite
  43. }
Advertisement
RAW Paste Data Copied
Advertisement