summaryrefslogtreecommitdiffstats
path: root/runc/build/runc.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-05-19 12:12:50 +0000
committer Eric Hameleers <alien@slackware.com>2022-05-19 12:12:50 +0000
commit04145c5d2e3b18a0b927eb72a491e5d3ca0f6b54 (patch)
treea3bc41b554f289f2f2664636b10d8c374d910148 /runc/build/runc.SlackBuild
parent1c5673e1fb5c4bfab79a73a69b5cbd9a18eed087 (diff)
downloadasb-04145c5d2e3b18a0b927eb72a491e5d3ca0f6b54.tar.gz
asb-04145c5d2e3b18a0b927eb72a491e5d3ca0f6b54.tar.xz
runc: also build/install man page
Diffstat (limited to 'runc/build/runc.SlackBuild')
-rwxr-xr-xrunc/build/runc.SlackBuild22
1 files changed, 13 insertions, 9 deletions
diff --git a/runc/build/runc.SlackBuild b/runc/build/runc.SlackBuild
index 7141f698..ee417ba8 100755
--- a/runc/build/runc.SlackBuild
+++ b/runc/build/runc.SlackBuild
@@ -28,11 +28,13 @@
# For: runc
# Descr: commandline management of OCI compliant containers
# URL: https://runc.io/
-# Build needs: google-go-lang
+# Build needs: go-md2man, google-go-lang
# Needs: (Slackware 14.2): libseccomp
# Changelog:
# 1.0.3-1: 03/jan/2022 by Eric Hameleers <alien@slackware.com>
# * Initial build.
+# 1.1.2-1: 19/may/2022 by Eric Hameleers <alien@slackware.com>
+# * Update.
#
# Run 'sh runc.SlackBuild' to build a Slackware package.
# The package (.t?z) and .txt file as well as build logs are created in /tmp .
@@ -41,8 +43,8 @@
# -----------------------------------------------------------------------------
PRGNAM=runc
-VERSION=${VERSION:-1.0.3}
-GIT_COMMIT=${GIT_COMMIT:-f46b6ba} # for release 1.0.3
+VERSION=${VERSION:-1.1.2}
+GIT_COMMIT=${GIT_COMMIT:-a916309} # for release 1.1.2
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(nproc) "}
TAG=${TAG:-alien}
@@ -160,14 +162,16 @@ export CGO_CFLAGS="${SLKCFLAGS}"
export CGO_CXXFLAGS="${SLKCFLAGS}"
export CGO_LDFLAGS="${SLKLDFLAGS}"
export GOFLAGS="-trimpath -mod=readonly -modcacherw"
-# Can not build manpages due to missing go-md2man:
-make runc \
+make runc man \
2>&1 | tee $OUTPUT/make-${PRGNAM}.log
-# Manually install the lot:
-install -D -m0755 runc -t $PKG/usr/bin/
-install -D -m0644 contrib/completions/bash/runc \
- -t $PKG/usr/share/bash-completion/completions/
+# Install the lot:
+make install BINDIR=$PKG/usr/bin \
+ 2>&1 | tee $OUTPUT/install-${PRGNAM}.log
+make install-man MANDIR=$PKG/usr/man \
+ 2>&1 | tee -a $OUTPUT/install-${PRGNAM}.log
+make install-bash PREFIX=$PKG/usr \
+ 2>&1 | tee -a $OUTPUT/install-${PRGNAM}.log
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION