mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-29 12:31:35 +01:00
76 lines
2.0 KiB
Plaintext
76 lines
2.0 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=singularity
|
|
pkgver=3.5.0
|
|
pkgrel=0
|
|
pkgdesc="Application containers focused on reproducibility for scientific computing and HPC world."
|
|
url="https://www.sylabs.io/singularity/"
|
|
#/usr/lib/go/src/runtime/alg.go:8:2: can't open import: "internal/cpu": open /home/buildozer/.cache/go-build/ef/effc742fef276fd768982fc38a60fafbf5c12561f76af7304e08cde68fb7246a-d: no such file or directory
|
|
arch=""
|
|
license="BSD-3-Clause BSD-3-Clause-LBNL"
|
|
options="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: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"/
|
|
|
|
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
|
|
}
|
|
|
|
bashcomp() {
|
|
depends=""
|
|
pkgdesc="Bash completion for $pkgname"
|
|
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
|
|
|
|
mv "$pkgdir"/etc/bash_completion.d/singularity \
|
|
"$subpkgdir"/usr/share/bash-completion/completions/singularity
|
|
}
|
|
|
|
cleanup_srcdir() {
|
|
[ -d src ] && chmod -R +w src;
|
|
default_cleanup_srcdir
|
|
}
|
|
|
|
sha512sums="139428265467ffac87be7e7f879e89755ee83e6d667c0c9ab4774c9d6aef3fd57e89edb10498c9520bfb2bd2bf5645c350100d7161da25139fee98e04f6f58f0 singularity-3.5.0.tar.gz"
|