mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/containerd: add check and fix version string
This commit is contained in:
parent
327107dd65
commit
c3805a07dc
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user