Last active
October 11, 2016 15:59
-
-
Save truatpasteurdotfr/a0e325d8ff9254339f901acc84ae03b1 to your computer and use it in GitHub Desktop.
singularity-2.2/APKBUILD
This file contains 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
# Contributor: "Tru Huynh <[email protected]>" | |
# Maintainer: "Tru Huynh <[email protected]>" | |
pkgname=singularity | |
pkgver=2.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.2/singularity-2.2.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="74d05c2f2275bbfde36a2f05a736b7fe singularity-2.2.tar.gz" | |
sha256sums="3dcb23300d6a5a248659880cbcd98a073bc4a49d19c279ba0460256ed480f3e9 singularity-2.2.tar.gz" | |
sha512sums="ae22a2a33dd7d013f4fd12e751d83aeaf3b0acfe98d79d4f827e1380703cc17e624b67afde1f8af6e5a762d493a8748d073570133207b82db8f8e3483055379b singularity-2.2.tar.gz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment