aboutsummaryrefslogtreecommitdiffstats
path: root/testing/containerd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-12-13 20:01:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-12-13 20:01:19 +0000
commitc3805a07dca508b105c7f0237281a01921625add (patch)
tree400f69e4cc0af42c0ba5b7d9c8809f845dd97571 /testing/containerd
parent327107dd65f1b7d562d96a70470948677a2b51fa (diff)
downloadaports-c3805a07dca508b105c7f0237281a01921625add.tar.bz2
aports-c3805a07dca508b105c7f0237281a01921625add.tar.xz
testing/containerd: add check and fix version string
Diffstat (limited to 'testing/containerd')
-rw-r--r--testing/containerd/APKBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/testing/containerd/APKBUILD b/testing/containerd/APKBUILD
index da62d66f1b..01e4e37838 100644
--- a/testing/containerd/APKBUILD
+++ b/testing/containerd/APKBUILD
@@ -1,27 +1,28 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=containerd
pkgver=1.0.0
-pkgrel=0
+pkgrel=1
pkgdesc="An open and reliable container runtime"
url="https://containerd.io/"
arch="all"
license="ASL 2.0"
-depends=""
makedepends="go linux-headers btrfs-progs-dev protobuf-dev"
-options="!check"
-subpackages=""
source="containerd-$pkgver.tar.gz::https://github.com/containerd/containerd/archive/v$pkgver.tar.gz
"
builddir="$srcdir"/containerd-$pkgver
build() {
-# export AUTO_GOPATH=1
cd "$builddir"
mkdir src
mv vendor/* src
ln -s "$builddir" src/github.com/containerd/containerd
- GOPATH="$PWD" LDFLAGS="" make GIT_COMMIT="v$pkgver"
+ GOPATH="$PWD" LDFLAGS="" make VERSION="$pkgver" REVISION="$pkgrel"
+}
+
+check() {
+ cd "$builddir"
+ ./bin/containerd --version
}
package() {