blob: 6902495cf53e2d31d6b39abafa1577e52148fa8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
name=runc
version=1.4.2
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 SHELL=/bin/sh runc
install -Dm755 runc "$PKG/usr/bin/runc"
cd man
sed -i 's/bash/sh/' md2man-all.sh
sed -i '/^cd/d' md2man-all.sh
./md2man-all.sh
install -d "$PKG/usr/share/man/man8"
install -m644 man8/*.8 "$PKG/usr/share/man/man8"
}
|