summaryrefslogblamecommitdiff
path: root/user/spack/APKBUILD
blob: c7be74b7a756484dbb571a475983bf1208badd55 (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.20.3_p1
pkgrel=5
pkgdesc="A flexible package manager for supercomputers."
url="https://spack.io/"
arch="all"
license="Apache-2.0 OR MIT"
options="!dbg !strip !fhs"
makedepends="python3-dev"
depends="$makedepends
	gcc g++ gfortran
	bzip2 file git gnupg gzip libarchive-tools make patch unzip xz
	"
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
	40841.patch
	40877.patch
	clingo-explicit-libatomic.patch
	archspec-fix-cpu-family-detection.patch
	openssl-explicit-linux-headers.patch

	default-no-buildcache.patch
	default-adelie-upstream-git.patch

	config.yaml
	"
install="$pkgname.post-install"
builddir="${srcdir}/${pkgname}-adelie-v${pkgver}"

prepare()
{
	default_prepare

	# disable binary bootstrap
	sed -i etc/spack/defaults/bootstrap.yaml -e '/github-actions/d';

	# delete windows files
	find bin \( -name '*.ps1' -o -name '*.py' -o -name '*.bat' \) -delete;
}

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 --debug install zlib

	rm -fr var/spack/cache
	rm -fr etc/spack/linux # caches compilers.yaml
}

package() {
	install -m755 -d "${pkgdir}"/opt/spack;
	for k in bin etc lib share var; do
		mv "${k}" "${pkgdir}"/opt/spack;
	done

	for k in LICENSE-APACHE LICENSE-MIT NOTICE; do
		install -Dm644 ${k} "${pkgdir}"/usr/share/licenses/${pkgname}/${k};
	done

	# lower precedence than /opt/spack/etc/spack/config.yaml
	install -D -m644 "${srcdir}"/config.yaml "$pkgdir"/etc/spack/config.yaml;
}

sha512sums="9629ee48d4f93158c4c2d3f14bc8755e33df1a82428337fc27495b7bbfba3f056c193b95bcb9f90025d89c7759fcf2ef09a1f1639880a8db87a786ee1bd138e2  spack-adelie-v0.20.3_p1.tar.bz2
195d9dd1da12be338169a4a2a0b12fece1fefd4ac6570111913ce0d50a8e007fc3320340573cee760d1eab55dddfcf7eed04221bd686a59d18d0ab2ef46f65a0  40841.patch
9381c627598e593f78daf03d1bb8dfa386006b4412a1bca70ae69d97b40e0ad827daf176c8c0e066b15917e2b5abbbae9006624a2d98afcabb3eb44618d6c179  40877.patch
30f6d193971bc6f2941141d0da50d339c459f2b9c6157cc2659a589bd2b546fba35d580cad79dd1bc74bcd9de7db31bc937418598d73b68c69876fee6a1c5c73  clingo-explicit-libatomic.patch
a6503238d116b74ff9c4ecd08a984df90ce02f95c3e10e907481d99917c73339db1cc49f2b473a37875b92a9a6607cac72057c0a7b3d9a57d44c89ebe0ad3915  archspec-fix-cpu-family-detection.patch
8ded405082eec192187fb72896c68200985ee1226b2ef7da19ab43f31138972d5b4000cf997cb6e22664a7c100b52b842df07c44e188f87d4250f698d1885ea6  openssl-explicit-linux-headers.patch
eec3e7dd818c39daea7b8d63b04a6c71d9eb3af32dd899cddc3642152252f4e2eebfd53c3c95365117f9a4826f6f29553f44373948e5c474388021302c8a5ce9  default-no-buildcache.patch
eb09ce82d2c5c63c2cc63b2f82db2888f15ce82100311614f5a73773be2f605337811c4580e0d4eb2f87b730e7ce4afa6dcdc3f3f52321f63a29a2ad533ea5d4  default-adelie-upstream-git.patch
864ae8e73cd80560ed9c4ce03bc6ae8f58b928da348a261617e42b6a680f8cf18f48b120401fe7b4a3f3af260675922044dbd9abbc79b1d2e90f821c00569d5e  config.yaml"