Created
October 11, 2018 12:14
-
-
Save apeltzer/09e06ae3ced3a0999abc7f8230a3be7d to your computer and use it in GitHub Desktop.
AUR-Singularity3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Maciej Sieczka <msieczka at sieczka dot org> | |
# Go transition by Alex Peltzer <[email protected]> | |
pkgname='singularity-container' | |
pkgver='3.0.0' | |
pkgrel='0' | |
pkgdesc='Container platform focused on supporting "Mobility of Compute".' | |
arch=('i686' 'x86_64') | |
url='http://sylabs.io' | |
_url="github.com/sylabs/singularity" | |
license=('BSD') | |
depends=('go' 'squashfs-tools' 'dep') | |
source=("https://github.com/sylabs/singularity/releases/download/v${pkgver}/singularity-v${pkgver}.tar.gz") | |
md5sums=('019afc549c838ff08cabffe094c194b9') | |
prepare() { | |
export GOPATH="${srcdir}"/gopath | |
mkdir -p "$GOPATH"/src/${_url} | |
cp -r ${srcdir}/singularity/* "$GOPATH"/src/${_url} | |
} | |
build() { | |
export GOPATH="${srcdir}"/gopath | |
cd "$GOPATH"/src/${_url} | |
./mconfig | |
make -C builddir | |
} | |
package() { | |
install -Dm755 "$GOPATH"/src/${_url}/builddir/singularity -t "${pkgdir}"/usr/bin/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@apeltzer Thanks. Can you make it a PR on https://github.com/czka/AUR-singularity-container? I have it mirrored on the singularity-container AUR Git repo. So changes applied via GitHub get pushed to AUR as well.
By "mirrored" I mean a following Git setup on my side: