aboutsummaryrefslogtreecommitdiffstats
path: root/community/umoci/APKBUILD
blob: ed6457d3df94253cf209515db3d1f631c476bb19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"