# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=umoci pkgver=0.4.4 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() { export GOPATH="$srcdir" go build -o bin/$pkgname ./cmd/$pkgname } package() { install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname } sha512sums="9203cbceaa7be1e57f52eacca17b63272c1dc8a050822fbd8f0a8fadd8c9a9665c69f30e0a13096c0c6055f5892b25345a270f54d49fb3348a14a05fdcaf6f94 umoci-0.4.4.tar.gz"