blob: 477aee905b194a7b7dd473bfe1cd5a137a43c8fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Morten Linderud <foxboron@archlinux.org>
# Contributor: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Sébastien "Seblu" Luttringer
# Contributor: Etienne Brodu<aur.archlinux ат etnbrd.com>
# Contributor: Quey-Liang Kao<s101062801 ат m101.nthu.edu.tw>
# Contributor: Iwan Timmer <irtimmer ат gmail.com>
pkgname=runc-git
pkgver=1.2.0.r166.ga5bfdc9d
pkgrel=1
pkgdesc="CLI tool for managing OCI compliant containers"
arch=('x86_64')
url="https://runc.io/"
license=('Apache-2.0')
depends=('libseccomp')
makedepends=('git' 'go' 'go-md2man')
optdepends=(
'criu: checkpoint support'
)
provides=('runc')
conflicts=('runc')
options=('!lto')
source=("git+https://github.com/opencontainers/runc")
sha256sums=('SKIP')
pkgver() {
cd runc
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'
}
prepare() {
cd runc
git worktree add ../src/github.com/opencontainers/runc HEAD
}
build() {
cd src/github.com/opencontainers/runc
export GOPATH="$srcdir"
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
}
package() {
cd src/github.com/opencontainers/runc
install -Dm755 runc "$pkgdir/usr/bin/runc"
install -Dm644 contrib/completions/bash/runc \
"$pkgdir/usr/share/bash-completion/completions/runc"
install -d "$pkgdir/usr/share/man/man8"
install -m644 man/man8/*.8 "$pkgdir/usr/share/man/man8"
}
# vim: set ts=2 sw=2 et:
|