summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-05-10 18:35:47 +0000
committerZach van Rijn <me@zv.io>2022-06-12 23:51:39 +0000
commit79b36cd91327e561a15b0403f7de9af1e6c42a7b (patch)
tree5b2941429a369ad3db7b8718af8dcc721aac344f /user
parentcedc6889329c0ffc7033c9b6fe8b47169fb90e8b (diff)
downloadpackages-79b36cd91327e561a15b0403f7de9af1e6c42a7b.tar.gz
packages-79b36cd91327e561a15b0403f7de9af1e6c42a7b.tar.bz2
packages-79b36cd91327e561a15b0403f7de9af1e6c42a7b.tar.xz
packages-79b36cd91327e561a15b0403f7de9af1e6c42a7b.zip
user/spack: new package.
Diffstat (limited to 'user')
-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"