# Contributor: Kurt H Maier <khm@sciops.net>
# Maintainer: Kurt H Maier <khm@sciops.net>
pkgname=singularity
pkgver=2.4.2
pkgrel=0
pkgdesc="A container platform focused on supporting 'Mobility of Compute'"
url="http://singularity.lbl.gov/"
arch="all"
license="BSD-3-Clause-LBNL"
depends="python"
makedepends="autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/singularityware/singularity/releases/download/$pkgver/singularity-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver 

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-suid \
		--with-userns
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="2c26af6cd092bc030113cdb2a79430d82d51b7438330a6cd0706e46438296feed4d86b08d57efff0b7df148ca0e08f706b8a214f03439bccd7d196714cd06dbc  singularity-2.4.2.tar.gz"
