summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Dollé2019-10-02 19:37:14 +0200
committerGuillaume Dollé2019-10-02 19:46:29 +0200
commit34f0ee864983c5cbd06d574d05742d7c7a274f42 (patch)
tree680b5441d982116759534eacfefd45dc9fce7b24
downloadaur-34f0ee864983c5cbd06d574d05742d7c7a274f42.tar.gz
Add PKGBUILD
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f580f618ff2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = spack
+ pkgdesc = A flexible package manager for supercomputer that supports multiple versions, configurations, platforms, and compilers.
+ pkgver = 0.12.1
+ pkgrel = 1
+ url = https://spack.io/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = python
+ source = https://github.com/spack/spack/archive/v0.12.1.tar.gz
+ sha256sums = 511d131b0d0abfe23b9feb84f9464fe654a6e0e4f3064ec026bba58116a074fc
+
+pkgname = spack
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e906eb8298f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Guillaume Dolle <dev at gdolle.com>
+pkgname=spack
+pkgver=0.12.1
+pkgrel=1
+pkgdesc="A flexible package manager for supercomputer that supports multiple versions, configurations, platforms, and compilers."
+arch=('i686' 'x86_64')
+url="https://spack.io/"
+license=('MIT')
+depends=('python')
+source=(https://github.com/spack/spack/archive/v${pkgver}.tar.gz)
+sha256sums=('511d131b0d0abfe23b9feb84f9464fe654a6e0e4f3064ec026bba58116a074fc')
+# See also spack.sh
+_spackroot=/opt/spack
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ mkdir -p ${pkgdir}/${_spackroot}
+ cp -ax share ${pkgdir}/${_spackroot}
+ cp -ax lib ${pkgdir}/${_spackroot}
+ cp -ax bin ${pkgdir}/${_spackroot}
+ cp -ax etc ${pkgdir}/${_spackroot}
+ cp -ax var ${pkgdir}/${_spackroot}
+ find ./* -maxdepth 0 -type f \( ! -name ".*" \) -exec install -Dm 644 "{}" "${pkgdir}/${_spackroot}/{}" \;
+
+ mkdir -p ${pkgdir}/etc/profile.d
+ ln -sf ${_spackroot}/share/spack/setup-env.sh ${pkgdir}/etc/profile.d/${pkgname}.sh
+ ln -sf ${_spackroot}/share/spack/setup-env.csh ${pkgdir}/etc/profile.d/${pkgname}.csh
+}
+