summaryrefslogtreecommitdiff
path: root/user/spack
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-10-21 18:33:58 -0500
commita8b725a0bca3ffeb9ee7c77383d2346c16c139a6 (patch)
treefde58ba85a6df403d1715339a458256ae206f070 /user/spack
parentb01cf2e0a70b29c84095695ce5cd3d6083624515 (diff)
downloadpackages-a8b725a0bca3ffeb9ee7c77383d2346c16c139a6.tar.gz
packages-a8b725a0bca3ffeb9ee7c77383d2346c16c139a6.tar.bz2
packages-a8b725a0bca3ffeb9ee7c77383d2346c16c139a6.tar.xz
packages-a8b725a0bca3ffeb9ee7c77383d2346c16c139a6.zip
user/spack: new package.
Diffstat (limited to 'user/spack')
-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"