mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-17 06:32:36 +01:00
- https://github.com/sylabs/singularity/releases 3.2.1 - Removed patch as it already included upstream Closes GH-8262
68 lines
1.8 KiB
Plaintext
68 lines
1.8 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=singularity
|
|
pkgver=3.2.1
|
|
pkgrel=0
|
|
pkgdesc="Application containers focused on reproducibility for scientific computing and HPC world."
|
|
url="https://www.sylabs.io/singularity/"
|
|
arch="all !aarch64 !armhf !armv7"
|
|
license="BSD-3-Clause BSD-3-Clause-LBNL"
|
|
options="suid !check" # no test suite from upstream
|
|
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
|
|
|
|
make -C builddir
|
|
}
|
|
|
|
package() {
|
|
make -C builddir DESTDIR="$pkgdir" install
|
|
|
|
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"
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
|
|
|
|
mv "$pkgdir"/etc/bash_completion.d/singularity \
|
|
"$subpkgdir"/usr/share/bash-completion/completions/singularity
|
|
}
|
|
sha512sums="769f9381a625c0e4dc2829e7a353e695a60944194ea88675bab4a1fdc80cee0545caacfcd9d0380728970ffd8f2256e77dd6b8f9d4babf91b9e4f8a0d8533535 singularity-3.2.1.tar.gz"
|