summaryrefslogblamecommitdiff
path: root/user/spack/APKBUILD
blob: 5758f1fd107b716340e5a11ad6a44c5259d38ee6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                       


                                                               



                                                        
                     


                                                

                                                                                           








                                                                     

                                                       

















                                                
                                                                                                                                                                                                     
# Contributor: Zach van Rijn <me@zv.io>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=spack
pkgver=0.17.2 # git tag --contains releases/latest | grep ^v
_rev=bb8fbb9b589e667f92ce7d56b3802ba44cb188ec # branch 'adelie'
pkgrel=1
pkgdesc="A flexible package manager for supercomputers."
url="https://spack.io/"
arch="all"
license="Apache-2.0 OR MIT"
options="!dbg !strip"
makedepends="python3-dev"
depends="$makedepends" # due to bootstrap design
subpackages=""
source="https://git.adelielinux.org/adelie/$pkgname/-/archive/$_rev/$pkgname-$_rev.tar.bz2"
builddir="$srcdir/$pkgname-$_rev"

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-v0.1
	bin/spack bootstrap untrust github-actions-v0.2
	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="2745b008c4acd9e9420e88fc366676e3a4a40bd7c7d026de1f9595355eb7f06bf13634b9aeacae048bbc1b7d3c75232065a241e2fc171adcfb3dc3f50d57daac  spack-bb8fbb9b589e667f92ce7d56b3802ba44cb188ec.tar.bz2"