blob: e795a55ec083e23cacd0df747d42c0be6ea9a637 (
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
|
# Contributor: Jake Buchholz <tomalok@gmail.com>
# Maintainer: Jake Buchholz <tomalok@gmail.com>
pkgname=containerd
# NOTE: containerd's Makefile tries to get REVISION from git, but we're building from a tarball.
_commit=e6b3f5632f50dbc4e9cb6288d911bf4f5e95b18e
pkgver=1.2.4
pkgrel=0
pkgdesc="An open and reliable container runtime"
url="https://containerd.io"
arch="all"
license="Apache-2.0"
depends="runc"
makedepends="btrfs-progs-dev go go-md2man libseccomp-dev"
subpackages="$pkgname-doc"
source="containerd-$pkgver.tar.gz::https://github.com/containerd/containerd/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/containerd/containerd"
build() {
cd "$srcdir"
export GOPATH="$PWD"
mkdir -p $(dirname "$builddir")
ln -s "$PWD/$pkgname-$pkgver" "$builddir"
cd "$builddir"
make VERSION="v$pkgver" REVISION="$_commit"
make man
}
check() {
cd "$builddir"
./bin/containerd --version
}
package() {
cd "$builddir"
install -d "$pkgdir"/usr/bin/
install -Dsm755 "$builddir"/bin/* "$pkgdir"/usr/bin/
install -d "$pkgdir"/usr/share/man/man1/
install -Dm644 "$builddir"/man/*.1 "$pkgdir"/usr/share/man/man1/
install -d "$pkgdir"/usr/share/man/man5/
install -Dm644 "$builddir"/man/*.5 "$pkgdir"/usr/share/man/man5/
}
sha512sums="8a4e5064b2c1e14d39d9943f445ae18e4653f73bd3bb90f7efe558b9ffd4345db4b308362103dbfbede716eae8b547c1cec3d93962acb0a2ff34d66e4fce0d80 containerd-1.2.4.tar.gz"
|