Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save truatpasteurdotfr/bad349920d443b2285e3b647a0fbc7e5 to your computer and use it in GitHub Desktop.
Save truatpasteurdotfr/bad349920d443b2285e3b647a0fbc7e5 to your computer and use it in GitHub Desktop.
singularity-2.1/APKBUILD
# Contributor: "Tru Huynh <[email protected]>"
# Maintainer: "Tru Huynh <[email protected]>"
pkgname=singularity
pkgver=2.1.2
pkgrel=0
pkgdesc="Singularity: Application containers for Linux"
url="http://singularity.lbl.gov"
arch="x86_64"
license="LNL"
depends=""
depends_dev="autoconf automake gcc make libtool linux-headers"
#depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc $pkgname-examples"
#source="${pkgname}-${pkgver}.zip::https://github.com/gmkurtzer/singularity/archive/master.zip"
#source="${pkgname}-${pkgver}.tar.gz::https://github.com/singularityware/singularity/releases/download/2.1/2.1.2.tar.gz"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/singularityware/singularity/archive/${pkgver}.tar.gz"
options="suid"
builddir=$srcdir/${pkgname}-${pkgver}
#builddir=$srcdir/singularity-master
#builddir=singularity-master
build() {
cd "$builddir"
./autogen.sh
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
doc() {
arch="noarch"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname" || return 1
# Doc files
_docs="AUTHORS COPYING ChangeLog INSTALL NEWS README.md"
for _doc in $_docs; do
# install -Dm644 "$srcdir"/$pkgname-master/$_doc \
install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc \
"$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
done
}
examples() {
arch="noarch"
# Put the examples into a seperate package
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1
mv "$builddir"/examples/* "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1
}
md5sums="d581dc080e6d5e2e055e4cc91572c829 singularity-2.1.2.tar.gz"
sha256sums="8175adb404ea402b73333eb909dc6b63135444390a8f632900e7113030563458 singularity-2.1.2.tar.gz"
sha512sums="6d90e613d50692d8b72d92f02df3aae34190f99ce123361f8db8e8ec2104a8d1a75a2956fc8b01bef572508f0b2ae6e87aaf6067efdf2278fceed52220890e8e singularity-2.1.2.tar.gz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment