mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 06:51:57 +01:00
Build fails on the builders with caching errors and `no rule to make target cni/dhcp`. Unfortunately, this cannot be reproduced locally. Someone with accesses to the builders must investigate this further. Until then, disable it to prevent the builders from repeatably attempting rebuilds. See also: https://gitlab.alpinelinux.org/alpine/aports/issues/10737
70 lines
1.8 KiB
Plaintext
70 lines
1.8 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=singularity
|
|
pkgver=3.3.0
|
|
pkgrel=3
|
|
pkgdesc="Application containers focused on reproducibility for scientific computing and HPC world."
|
|
url="https://www.sylabs.io/singularity/"
|
|
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
|
|
"
|
|
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/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="41c9b7ef2986b275a761295b2b8ce0bf7c323d1f67098486f591da08ff834f953ee336fd00f0a75abef188ed9182bdca9971254f7e406032f42323250b05da82 singularity-3.3.0.tar.gz"
|