1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
2 # Maintainer: Frederik Schwan <freswa at archlinux dot org>
3 # Contributor: Sébastien "Seblu" Luttringer
8 pkgdesc='CLI tool for managing OCI compliant containers'
10 url='https://runc.io/'
12 provides=('oci-runtime')
14 makedepends=(git go go-md2man)
16 'criu: checkpoint support'
18 source=("${pkgname}-${pkgver}.tar.xz::https://github.com/opencontainers/runc/releases/download/v${pkgver}/runc.tar.xz"
19 "${pkgname}-${pkgver}.tar.xz.sig::https://github.com/opencontainers/runc/releases/download/v${pkgver}/runc.tar.xz.asc")
20 validpgpkeys=("5F36C6C61B5460124A75F5A69E18AA267DDB8DB4"
21 "C9C370B246B09F6DBCFC744C34401015D1D2D386")
22 sha256sums=('86444cc07461b81bbcb8d15c5fc2cad20afc64a70be0fc623073538aa91bafdd'
26 mkdir -p src/github.com/opencontainers
27 cp -r runc-${pkgver} src/github.com/opencontainers/runc
31 cd src/github.com/opencontainers/runc
32 export GOPATH="$srcdir"
33 export BUILDTAGS='seccomp apparmor'
34 export CGO_CPPFLAGS="${CPPFLAGS}"
35 export CGO_CFLAGS="${CFLAGS}"
36 export CGO_CXXFLAGS="${CXXFLAGS}"
37 export CGO_LDFLAGS="${LDFLAGS}"
38 export GOFLAGS="-trimpath -mod=readonly -modcacherw"
43 cd src/github.com/opencontainers/runc
45 install -Dm755 runc "$pkgdir/usr/bin/runc"
46 install -Dm644 contrib/completions/bash/runc \
47 "$pkgdir/usr/share/bash-completion/completions/runc"
49 install -d "$pkgdir/usr/share/man/man8"
50 install -m644 man/man8/*.8 "$pkgdir/usr/share/man/man8"