From 79b36cd91327e561a15b0403f7de9af1e6c42a7b Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Tue, 10 May 2022 18:35:47 +0000 Subject: user/spack: new package. --- user/spack/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 user/spack/APKBUILD (limited to 'user') 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 +# Maintainer: Zach van Rijn +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" -- cgit v1.2.3-70-g09d2