diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-12-16 14:40:31 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-01-02 08:02:12 +0000 |
commit | 1526ec6daca893e030f32be7cfe6352b4257d82c (patch) | |
tree | ac51af6eb03ae265071cb7cae8ed5f02d5276136 /community/umoci | |
parent | bdec9bd6a68ddb5dbf0255949c114efda4cd6388 (diff) | |
download | aports-1526ec6daca893e030f32be7cfe6352b4257d82c.tar.bz2 aports-1526ec6daca893e030f32be7cfe6352b4257d82c.tar.xz |
community/umoci: new aport
This is added to community as its a dep of lxc 3.x oci template (optional
install). More info:
https://brauner.github.io/2018/02/27/lxc-removes-legacy-template-build-system.html
Diffstat (limited to 'community/umoci')
-rw-r--r-- | community/umoci/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/umoci/APKBUILD b/community/umoci/APKBUILD new file mode 100644 index 0000000000..ed6457d3df --- /dev/null +++ b/community/umoci/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> +pkgname=umoci +pkgver=0.4.3 +pkgrel=0 +pkgdesc="umoci modifies Open Container images" +url="https://umo.ci/" +arch="all" +license="Apache-2.0" +makedepends="go" +options="!check" # has no check +source="umoci-$pkgver.tar.gz::https://github.com/openSUSE/umoci/archive/v$pkgver.tar.gz" +builddir="$srcdir/src/github.com/openSUSE/$pkgname" + +prepare() { + mkdir -p ${builddir%/*} + mv "$srcdir"/$pkgname-$pkgver "$builddir"/ + default_prepare +} + +build() { + cd "$builddir" + export GOPATH="$srcdir" + go build -o bin/$pkgname ./cmd/$pkgname +} + +package() { + cd "$builddir" + install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname +} + +sha512sums="5685c60ba847cfcf6b55999f9ed498a2703f3a402f03b9ebee62957003046f32f53da07f8fdb4189520c7cdd5683e3975fbcabda38518b2689be55377bbd3171 umoci-0.4.3.tar.gz" |