arch-packages/PKGBUILD

36 lines
1.4 KiB
Text
Raw Normal View History

2015-06-09 00:00:40 +02:00
# Contributor: graysky <graysky AT archlinux dot us>
pkgname=('linpack')
2016-10-25 13:30:19 +02:00
pkgver=2017.0.010
_math_kernel_lib=2017
_url=9752
2015-06-09 00:00:40 +02:00
pkgrel=1
arch=('i686' 'x86_64')
license=('custom')
url="http://software.intel.com/en-us/articles/intel-math-kernel-library-linpack-download"
2016-05-01 17:28:10 +02:00
source=("http://registrationcenter-download.intel.com/akdlm/irc_nas/$_url/l_mklb_p_$pkgver.tgz"
2015-06-09 00:00:40 +02:00
'linpack.conf' 'runme.template')
2016-10-25 13:30:19 +02:00
sha256sums=('bbdb3f983818650d27b068cb0ba4b746f273405785d77109f79859db01165efb'
2015-06-09 00:00:40 +02:00
'd7e31c8c7e2648c8fa3c4838d98dfc39b8fadf0f74bdaa4ca52cd38277ec8254'
2016-05-01 17:28:10 +02:00
'8bcd48bd97b3177590f15e922f8f7fb1ebfe6ea0608b4d63d8902ac2bd9b6a52')
2015-06-09 00:00:40 +02:00
build() {
[[ -z "$CARCH" ]] && echo "Cannot determine architecture of this system!" && exit 1
[[ "$CARCH" = "x86_64" ]] && bit=64 || bit=32
export bit
}
package_linpack() {
pkgdesc='Benchmark based on linear algebra excellent app for stress testing.'
backup=(etc/linpack.conf)
2016-02-07 14:23:53 +01:00
_base="$srcdir/l_mklb_p_$pkgver/benchmarks_$_math_kernel_lib"
_test="$_base/linux/mkl/benchmarks/linpack"
2015-06-09 00:00:40 +02:00
# setup based on detected arch
sed -e "s/@TARGET_BIT@/$bit/g" <runme.template >linpack_runme_xeon$bit
install -Dm755 linpack_runme_xeon$bit "$pkgdir/usr/bin/linpack_runme_xeon$bit"
2016-05-01 17:28:10 +02:00
install -Dm644 linpack.conf "$pkgdir/usr/share/$pkgname/linpack.conf"
2016-10-25 13:30:19 +02:00
install -Dm644 "$_base/EULA.txt" "$pkgdir/usr/share/licenses/linpack/license.txt"
2016-02-07 14:23:53 +01:00
install -Dm755 "$_test/xlinpack_xeon$bit" "$pkgdir/usr/bin/xlinpack_xeon$bit"
2015-06-09 00:00:40 +02:00
}