aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/runc/abuild
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-09-12 03:06:52 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-09-12 03:06:52 +0800
commit5b6da4a4ac4587f28f132509e968b110a3a4a689 (patch)
tree731106e7b3d5e5c94b775531c0ed51cc212d8a18 /repos/extra/runc/abuild
parentb845b45c735ee18c01945013f67fd72852de47d5 (diff)
downloadalicelinux-5b6da4a4ac4587f28f132509e968b110a3a4a689.tar.gz
alicelinux-5b6da4a4ac4587f28f132509e968b110a3a4a689.zip
runc: new added
Diffstat (limited to 'repos/extra/runc/abuild')
-rw-r--r--repos/extra/runc/abuild18
1 files changed, 18 insertions, 0 deletions
diff --git a/repos/extra/runc/abuild b/repos/extra/runc/abuild
new file mode 100644
index 00000000..612a44c6
--- /dev/null
+++ b/repos/extra/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"
+}