aboutsummaryrefslogtreecommitdiff
path: root/runc/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'runc/abuild')
-rw-r--r--runc/abuild18
1 files changed, 18 insertions, 0 deletions
diff --git a/runc/abuild b/runc/abuild
new file mode 100644
index 00000000..612a44c6
--- /dev/null
+++ b/runc/abuild
@@ -0,0 +1,18 @@
+name=runc
+version=1.3.1
+release=1
+source="https://github.com/opencontainers/${name}/archive/v${version}/${name}-v${version}.tar.gz"
+
+build() {
+ export GOPATH="$PWD/go"
+ export BUILDTAGS='seccomp apparmor'
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-trimpath -mod=readonly -modcacherw"
+ make runc man
+ install -Dm755 runc "$PKG/usr/bin/runc"
+ install -d "$PKG/usr/share/man/man8"
+ install -m644 man/man8/*.8 "$PKG/usr/share/man/man8"
+}