# Contributor: graysky pkgname=('linpack') pkgver=11.3.3.011 _math_kernel_lib=11.3.3 _url=9128 pkgrel=1 arch=('i686' 'x86_64') license=('custom') url="http://software.intel.com/en-us/articles/intel-math-kernel-library-linpack-download" source=("http://registrationcenter-download.intel.com/akdlm/irc_nas/$_url/l_mklb_p_$pkgver.tgz" 'linpack.conf' 'runme.template') sha256sums=('d19c1614d0508f28439e4af2ff606de2ae078f19dc9ca7363e4192694d43813e' 'd7e31c8c7e2648c8fa3c4838d98dfc39b8fadf0f74bdaa4ca52cd38277ec8254' '8bcd48bd97b3177590f15e922f8f7fb1ebfe6ea0608b4d63d8902ac2bd9b6a52') 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) _base="$srcdir/l_mklb_p_$pkgver/benchmarks_$_math_kernel_lib" _test="$_base/linux/mkl/benchmarks/linpack" # setup based on detected arch sed -e "s/@TARGET_BIT@/$bit/g" linpack_runme_xeon$bit install -Dm755 linpack_runme_xeon$bit "$pkgdir/usr/bin/linpack_runme_xeon$bit" install -Dm644 linpack.conf "$pkgdir/usr/share/$pkgname/linpack.conf" install -Dm644 "$_base/license.txt" "$pkgdir/usr/share/licenses/linpack/license.txt" install -Dm755 "$_test/xlinpack_xeon$bit" "$pkgdir/usr/bin/xlinpack_xeon$bit" }