mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-24 18:11:44 +01:00
77 lines
1.9 KiB
Plaintext
77 lines
1.9 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=singularity
|
|
pkgver=3.7.2
|
|
pkgrel=0
|
|
pkgdesc="Application containers focused on reproducibility for scientific computing and HPC world."
|
|
url="https://www.sylabs.io/singularity/"
|
|
# aarch64: segmentation fault during build
|
|
# mips: fails to build
|
|
# ppc64le: produces a non-PIE suid binary
|
|
arch="all !aarch64 !mips !mips64 !ppc64le"
|
|
license="BSD-3-Clause AND BSD-3-Clause-LBNL"
|
|
options="chmod-clean suid !check" # no test suite from upstream
|
|
depends="squashfs-tools"
|
|
makedepends="
|
|
go
|
|
linux-headers
|
|
binutils-gold
|
|
openssl-dev
|
|
libuuid
|
|
util-linux-dev
|
|
libseccomp-dev
|
|
cryptsetup
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-bash-completion::noarch"
|
|
source="https://github.com/hpcng/singularity/releases/download/v$pkgver/singularity-$pkgver.tar.gz"
|
|
builddir="$srcdir/src/github.com/hpcng/$pkgname"
|
|
|
|
# secfixes:
|
|
# 3.6.4-r0:
|
|
# - CVE-2020-15229
|
|
# 3.6.3-r0:
|
|
# - CVE-2020-25039
|
|
# - CVE-2020-25040
|
|
# 3.6.0-r0:
|
|
# - CVE-2020-13845
|
|
# - CVE-2020-13846
|
|
# - CVE-2020-13847
|
|
# 3.5.2-r0:
|
|
# - CVE-2019-19724
|
|
|
|
prepare() {
|
|
export GOPATH="$srcdir"
|
|
|
|
mkdir -p "$(dirname $builddir)"
|
|
mv "$srcdir"/$pkgname "$builddir"/
|
|
|
|
echo "$pkgver" > "$builddir"/VERSION
|
|
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
|
|
|
|
make -C builddir
|
|
}
|
|
|
|
package() {
|
|
make -C builddir DESTDIR="$pkgdir" install
|
|
|
|
install -m644 -D -t "$pkgdir/usr/share/doc/$pkgname" README.md
|
|
|
|
mkdir -p "$pkgdir"/usr/share/bash-completion/completions
|
|
mv "$pkgdir"/etc/bash_completion.d/singularity \
|
|
"$pkgdir"/usr/share/bash-completion/completions
|
|
}
|
|
|
|
sha512sums="f31e383e645d394cc29e5b38da84ca805545e3226b069c696e667e7dde1569fa2373613f624c739482459a938e76e4e513062c19474685ccbfa5bd6162244466 singularity-3.7.2.tar.gz"
|