contrib/runc/Pkgfile

26 lines
839 B
Plaintext

# Description: a lightweight universal runtime container
# URL: https://github.com/opencontainers/runc
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: go libseccomp git
name=runc
version=1.1.9
release=1
source=(https://github.com/opencontainers/runc/archive/v${version}/$name-${version}.tar.gz \
http://jaeger.morpheus.net/linux/crux/files/$name-man-pages-$version.tar.xz)
build() {
mkdir -pv src/github.com/opencontainers
cd src/github.com/opencontainers
ln -sf $SRC/$name-$version $name
cd $name
export GOPATH=$SRC
export BUILDTAGS="seccomp"
# use the long commit hash here
make COMMIT=860f061b76bb4fc671f0f9e900f7d80ff93d4eb7
install -D -m 0755 $name $PKG/usr/bin/$name
install -d -m 0755 $PKG/usr/share/man/man8
install -m 0644 $SRC/man8/* $PKG/usr/share/man/man8/
}