testing/containerd: add check and fix version string

This commit is contained in:
Natanael Copa 2017-12-13 20:01:19 +00:00
parent 327107dd65
commit c3805a07dc

View File

@ -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() {