summaryrefslogtreecommitdiff
path: root/user/spack/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/spack/APKBUILD')
-rw-r--r--user/spack/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/spack/APKBUILD b/user/spack/APKBUILD
new file mode 100644
index 000000000..f4fc0f84a
--- /dev/null
+++ b/user/spack/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Zach van Rijn <me@zv.io>
+# Maintainer: Zach van Rijn <me@zv.io>
+pkgname=spack
+pkgver=0.17.2
+pkgrel=0
+pkgdesc="A flexible package manager for supercomputers."
+url="https://spack.io/"
+arch="all"
+license="Apache-2.0 OR MIT"
+options="!dbg"
+makedepends="python3-dev"
+depends="$makedepends" # due to bootstrap design
+subpackages=""
+source="https://github.com/spack/spack/releases/download/v$pkgver/spack-$pkgver.tar.gz"
+
+check() {
+ ##
+ # On first run, Spack >=0.17.0 will bootstrap "clingo",
+ # Spack's new "concretizer". The output from this process
+ # is not kept, however it demonstrates Spack's functionality.
+ export SPACK_DISABLE_LOCAL_CONFIG=true
+ export SPACK_USER_CONFIG_PATH=$builddir/tmp
+ export SPACK_USER_CACHE_PATH=$builddir/tmp
+ bin/spack bootstrap untrust github-actions
+ bin/spack install zlib
+ rm -fr var/spack/cache
+}
+
+package() {
+ for k in etc lib share var; do
+ mkdir -p "$pkgdir"/${k};
+ cp -r ${k}/spack "$pkgdir"/${k};
+ done
+ mkdir -p "$pkgdir"/bin
+ install \
+ bin/sbang \
+ bin/spack \
+ bin/spack-python \
+ "$pkgdir"/bin \
+ ;
+}
+
+sha512sums="f4c6fdcebb84f23117249d828ce141b818199d7eceed7814b45abb367f0988c11fa9a94f36c46560ea497765c10531ebe5dbea88e4ece74a1bdf0f72353cee46 spack-0.17.2.tar.gz"