blob: e92bfc6827d3cb3ad59c38798a4f92c3235784f0 (
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
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
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"
|