diff --git a/.SRCINFO b/.SRCINFO index 6173712..4de1544 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,21 +1,20 @@ # Generated by mksrcinfo v8 -# Sun Feb 7 13:23:53 UTC 2016 +# Sun May 1 15:28:10 UTC 2016 pkgbase = linpack - pkgver = 11.3.1.002 + pkgver = 2017.0.004 pkgrel = 1 url = http://software.intel.com/en-us/articles/intel-math-kernel-library-linpack-download arch = i686 arch = x86_64 license = custom - source = http://registrationcenter.intel.com/irc_nas/8305/l_mklb_p_11.3.1.002.tgz + source = http://registrationcenter-download.intel.com/akdlm/irc_nas/8933/l_mklb_p_2017.0.004.tgz source = linpack.conf source = runme.template - sha256sums = aac34c9960a394130bc5b77060dc3e2066d36a8b020465f0ec16d5a30551ed1b + sha256sums = 90c2fdba5b0f16490efd01b34945c02d56c4fe538071776d1ad24e8a64ed61cf sha256sums = d7e31c8c7e2648c8fa3c4838d98dfc39b8fadf0f74bdaa4ca52cd38277ec8254 - sha256sums = 8c880adeee3de6c0e6005e210cea0e01b471219c590e25e824298a25ab0eef31 + sha256sums = 8bcd48bd97b3177590f15e922f8f7fb1ebfe6ea0608b4d63d8902ac2bd9b6a52 pkgname = linpack pkgdesc = Benchmark based on linear algebra excellent app for stress testing. - install = readme.install backup = etc/linpack.conf diff --git a/PKGBUILD b/PKGBUILD index ecc8395..f1a29fe 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,18 +1,18 @@ # Contributor: graysky pkgname=('linpack') -pkgver=11.3.1.002 -_math_kernel_lib=11.3.1 -_url=8305 +pkgver=2017.0.004 +_math_kernel_lib=2017.b +_url=8933 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.intel.com/irc_nas/$_url/l_mklb_p_$pkgver.tgz" +source=("http://registrationcenter-download.intel.com/akdlm/irc_nas/$_url/l_mklb_p_$pkgver.tgz" 'linpack.conf' 'runme.template') -sha256sums=('aac34c9960a394130bc5b77060dc3e2066d36a8b020465f0ec16d5a30551ed1b' +sha256sums=('90c2fdba5b0f16490efd01b34945c02d56c4fe538071776d1ad24e8a64ed61cf' 'd7e31c8c7e2648c8fa3c4838d98dfc39b8fadf0f74bdaa4ca52cd38277ec8254' - '8c880adeee3de6c0e6005e210cea0e01b471219c590e25e824298a25ab0eef31') + '8bcd48bd97b3177590f15e922f8f7fb1ebfe6ea0608b4d63d8902ac2bd9b6a52') build() { [[ -z "$CARCH" ]] && echo "Cannot determine architecture of this system!" && exit 1 @@ -22,7 +22,6 @@ build() { package_linpack() { pkgdesc='Benchmark based on linear algebra excellent app for stress testing.' - install=readme.install backup=(etc/linpack.conf) _base="$srcdir/l_mklb_p_$pkgver/benchmarks_$_math_kernel_lib" _test="$_base/linux/mkl/benchmarks/linpack" @@ -30,10 +29,7 @@ package_linpack() { 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/etc/linpack.conf" + install -Dm644 linpack.conf "$pkgdir/usr/share/$pkgname/linpack.conf" install -Dm644 "$_base/license.txt" "$pkgdir/usr/share/licenses/linpack/license.txt" - install -Dm644 "$_base/support.txt" "$pkgdir/usr/share/doc/linpack/support.txt" install -Dm755 "$_test/xlinpack_xeon$bit" "$pkgdir/usr/bin/xlinpack_xeon$bit" - #install -Dm644 "$srcdir/$_binpath/xhelp.lpk" "$pkgdir/usr/share/doc/${pkgname}/xhelp.lpk" - #cp -r "$srcdir/$_docpath" "$pkgdir/usr/share/doc/linpack" } diff --git a/readme.install b/readme.install deleted file mode 100644 index 06f69f0..0000000 --- a/readme.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - echo '-----------------------------------------------------------------------' - echo '1) Edit /etc/linpack.conf to configure memory usage for your system.' - echo - echo '2) Run the benchmark by typing:' - echo 'linpack_runme_xeon64' - echo ' or' - echo 'linpack_runme_xeon32' - echo '-----------------------------------------------------------------------' -} - diff --git a/runme.template b/runme.template index 7be7bd1..19fa319 100644 --- a/runme.template +++ b/runme.template @@ -1,15 +1,26 @@ #!/bin/bash # export KMP_AFFINITY=nowarnings,compact - -echo -e "Edit \E[31m/etc/linpack.conf\E[37m to adjust the amount of physical memory to consume." + +SKEL_CONFIG="/usr/share/linpack" +CONFIG="$SKEL_CONFIG/linpack.conf" +XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" + +[[ -f "$SKEL_CONFIG/linpack.conf" ]] || { + echo "ERROR: Missing $SKEL_CONFIG/linpack.conf - reinstall this package." ; exit 1 ; } + +[[ -d $XDG_CONFIG_HOME ]] || mkdir $XDG_CONFIG_HOME +[[ -f "$XDG_CONFIG_HOME/linpack.conf" ]] || cp "$CONFIG" "$XDG_CONFIG_HOME" + +echo -e "Edit \E[31m$XDG_CONFIG_HOME/linpack.conf\E[37m to adjust the amount of physical memory to consume." echo echo -e "Starting calculation.... hit ctrl+c to stop." echo -e "Consult \E[31m~/lin_xeon@TARGET_BIT@.txt\E[37m for results as they are caculated." date date >> ~/lin_xeon@TARGET_BIT@.txt -/usr/bin/xlinpack_xeon@TARGET_BIT@ /etc/linpack.conf >> ~/lin_xeon@TARGET_BIT@.txt + +/usr/bin/xlinpack_xeon@TARGET_BIT@ $XDG_CONFIG_HOME/linpack.conf >> ~/lin_xeon@TARGET_BIT@.txt date >> ~/lin_xeon@TARGET_BIT@.txt echo -n "Done: " date