aboutsummaryrefslogtreecommitdiffstats
path: root/community/runc/APKBUILD
blob: 4818f114a91c436ba25b89e80aec6c47ca212cf2 (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
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Jake Buchholz <tomalok@gmail.com>
# Maintainer: Jake Buchholz <tomalok@gmail.com>

pkgname=runc

# NOTE: using explicit post-1.0.0_rc6 commit, for containerd-1.2.1,
# see https://github.com/containerd/containerd/blob/v1.2.1/RUNC.md
# and https://github.com/containerd/containerd/blob/v1.2.1/vendor.conf
_commit=96ec2177ae841256168fcf76954f7177af9446eb

pkgver=1.0.0_rc6
pkgrel=0
pkgdesc="CLI tool for spawning and running containers according to the OCI specification"
url="https://www.opencontainers.org"
arch="all"
license="Apache-2.0"
makedepends="go go-md2man libseccomp-dev libtool"
subpackages="$pkgname-doc"
source="runc-$_commit.tar.gz::https://github.com/opencontainers/runc/archive/$_commit.tar.gz"
builddir="$srcdir/src/github.com/opencontainers/runc"

build() {
	cd "$srcdir"
	export GOPATH="$PWD"
	mkdir -p $(dirname "$builddir")
	ln -s "$PWD/$pkgname-$_commit" "$builddir"
	cd "$builddir"
	make COMMIT="$_commit"
	make man
}

check() {
	cd "$builddir"
	./runc --version
}

package() {
	cd "$builddir"
	install -Dsm755 "$builddir"/runc "$pkgdir"/usr/bin/runc
	install -d "$pkgdir"/usr/share/man/man8/
	install -Dm644 "$builddir"/man/man8/* "$pkgdir"/usr/share/man/man8/
}

sha512sums="ec3d3fec773f2f9df714b0813efb110e21e328634e0b4ae77f323a892d0327aea5d4b6f9ae2a549aa06fda5b27431f4514fd663c7033dc170ca1a03627931f9d  runc-96ec2177ae841256168fcf76954f7177af9446eb.tar.gz"