summaryrefslogblamecommitdiff
path: root/user/spack/APKBUILD
blob: f4fc0f84ad20e38c082a663a02a1084ea590fba3 (plain) (tree)










































                                                                                                                                                                  
# 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"