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


                                       

                

                                                        
                           
                           
                     


                                                













                                                                                                              








                                                                     

















                                                

                                                                                                                                                                             
# Contributor: Zach van Rijn <me@zv.io>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=spack
pkgver=0.19.0_p1
pkgrel=0
pkgdesc="A flexible package manager for supercomputers."
url="https://spack.io/"
arch="all !ppc"  # see #794
license="Apache-2.0 OR MIT"
options="!dbg !strip"
makedepends="python3-dev"
depends="$makedepends" # due to bootstrap design
subpackages=""
# https://git.adelielinux.org/adelie/docs/-/wikis/Developer-Resources/Maintaining-Spack
source="https://git.adelielinux.org/adelie/$pkgname/-/archive/adelie-v$pkgver/$pkgname-adelie-v$pkgver.tar.bz2
	archspec-fix-cpu-family-detection.patch
	"
builddir="$srcdir/$pkgname-adelie-v$pkgver"

prepare()
{
	default_prepare

	sed -i etc/spack/defaults/bootstrap.yaml \
		-e '/github-actions/d' \
		;
}

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 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="bc0dadee54fdbd15b374d6d768ed204ee66e776d9a86ba876b3023bca2875ce1f6ca4cc6fd15334ac0c0ceddab72910317833af277984d941d06d89dc145643d  spack-adelie-v0.19.0_p1.tar.bz2
a6503238d116b74ff9c4ecd08a984df90ce02f95c3e10e907481d99917c73339db1cc49f2b473a37875b92a9a6607cac72057c0a7b3d9a57d44c89ebe0ad3915  archspec-fix-cpu-family-detection.patch"