mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 07:31:35 +01:00
89 lines
2.1 KiB
Plaintext
89 lines
2.1 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=singularity
|
|
pkgver=3.1.1
|
|
pkgrel=0
|
|
pkgdesc="Application containers focused on reproducibility for scientific computing and HPC world."
|
|
url="https://www.sylabs.io/singularity/"
|
|
arch="all"
|
|
license="BSD-3-Clause BSD-3-Clause-LBNL"
|
|
options="suid"
|
|
depends="squashfs-tools"
|
|
makedepends="
|
|
go
|
|
linux-headers
|
|
openssl-dev
|
|
libuuid
|
|
util-linux-dev
|
|
libseccomp-dev
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/sylabs/singularity/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/src/github.com/sylabs/$pkgname"
|
|
|
|
prepare() {
|
|
export GOPATH="$srcdir"
|
|
|
|
mkdir -p $(dirname $builddir)
|
|
mv "$srcdir"/$pkgname-$pkgver "$builddir"/
|
|
|
|
default_prepare
|
|
}
|
|
|
|
build() {
|
|
export GOPATH="$srcdir"
|
|
export GOBIN="$GOPATH/bin"
|
|
|
|
./mconfig \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/infodir \
|
|
--localstatedir=/var
|
|
|
|
cd ./builddir
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"/builddir/
|
|
|
|
./singularity version
|
|
|
|
./singularity search alpine
|
|
|
|
./singularity key search Sylabs
|
|
|
|
./singularity pull alpine
|
|
printf 'Y\n' | ./singularity verify alpine_latest.sif
|
|
./singularity key list
|
|
|
|
./singularity cache list
|
|
./singularity cache clean --name alpine_latest.sif
|
|
./singularity cache list
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/builddir/
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# bash completion has it's own package
|
|
rm -r "$pkgdir"/etc/bash_completion.d/
|
|
|
|
cd "$builddir"
|
|
install -m644 -D -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
|
|
install -m644 -D -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE-LBNL.md
|
|
install -m644 -D -t "$pkgdir/usr/share/doc/$pkgname" README.md
|
|
|
|
}
|
|
|
|
bashcomp() {
|
|
depends=""
|
|
pkgdesc="Bash completion for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
|
|
|
install -Dm 644 "$builddir"/builddir/etc/bash_completion.d/singularity \
|
|
"$subpkgdir"/usr/share/bash-completion/completions/$pkgname
|
|
}
|
|
sha512sums="e3456b8629ea697f78f3260dc4f3ae3689a9dc274c49f7e8afb1c3f6f333f5e7402d4253eca767ae90b52e67ee006b58793338384cadda50191fba0e0e7bfd55 singularity-3.1.1.tar.gz"
|