[arch-commits] Commit in magma/repos (2 files)

Konstantin Gizdov kgizdov at archlinux.org
Sun Dec 8 11:14:59 UTC 2019


    Date: Sunday, December 8, 2019 @ 11:14:59
  Author: kgizdov
Revision: 536338

archrelease: copy trunk to community-staging-x86_64

Added:
  magma/repos/community-staging-x86_64/
  magma/repos/community-staging-x86_64/PKGBUILD
    (from rev 536337, magma/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: magma/repos/community-staging-x86_64/PKGBUILD (from rev 536337, magma/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-08 11:14:59 UTC (rev 536338)
@@ -0,0 +1,43 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: bartus <arch-user-repoᘓbartus.33mail.com>
+# Contributor: pingplug <pingplug at foxmail.com>
+# Contributor: cornholio <vigo.the.unholy.carpathian at gmail.com>
+
+pkgname=magma
+pkgver=2.5.2
+pkgrel=3
+pkgdesc="Matrix Algebra on GPU and Multicore Architectures"
+arch=('x86_64')
+url="https://icl.cs.utk.edu/magma/"
+license=('custom')
+depends=('blas' 'lapack' 'cuda')
+makedepends=('gcc-fortran' 'cmake')
+optdepends=('python2: for examples and tests')
+source=("http://icl.cs.utk.edu/projectsfiles/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('065feb85558f9dd6f4cc4db36ac633a3f787827fc832d0b578a049a43a195620')
+
+build() {
+  cd "${srcdir}/magma-${pkgver}"
+
+  mkdir -p build
+  cd build
+  cmake .. \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_SHARED_LIBS=ON \
+    -DGPU_TARGET="sm_30 sm_32 sm_35 sm_37 sm_50 sm_53 sm_60 sm_61 sm_62 sm_70 sm_72 sm_75"
+  make
+}
+
+package() {
+  cd "${srcdir}"/magma-${pkgver}/build
+  make DESTDIR="${pkgdir}" install
+
+  mkdir -p ${pkgdir}/usr/share/magma/example
+  cp -r ${srcdir}/magma-${pkgver}/example/* ${pkgdir}/usr/share/magma/example/
+  mkdir -p ${pkgdir}/usr/share/magma/testing
+  cp -r ${srcdir}/magma-${pkgver}/testing/* ${pkgdir}/usr/share/magma/testing/
+  install -Dm644 ${srcdir}/magma-${pkgver}/COPYRIGHT ${pkgdir}/usr/share/licenses/magma/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list