mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-09 18:01:50 +01:00
79 lines
2.0 KiB
Plaintext
79 lines
2.0 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=singularity
|
|
pkgver=3.7.3
|
|
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.7.3-r0:
|
|
# - CVE-2021-29136
|
|
# 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="56e797eb29a2fafaf6ccd730fb8cc9e35713020dacb4d19be02a7204272894360b0d254bd8066d9f14181b935f7179effbac2dfa776b2ff3e0e201388c372836 singularity-3.7.3.tar.gz"
|