mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
42 lines
1.5 KiB
Text
42 lines
1.5 KiB
Text
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
|
pkgname=linuxkit
|
|
pkgver=1.6.0
|
|
pkgrel=0
|
|
pkgdesc="Toolkit for building immutable operating systems for containers"
|
|
url="https://github.com/linuxkit/linuxkit"
|
|
# 32-bit platforms: github.com/rn/iso9660wrap: integer overflow
|
|
arch="all !x86 !armhf !armv7"
|
|
license="Apache-2.0"
|
|
makedepends="go"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxkit/linuxkit/archive/refs/tags/v$pkgver.tar.gz
|
|
add-loongarch64-riscv64-support.patch"
|
|
builddir="$srcdir/$pkgname-$pkgver/src/cmd/linuxkit"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
local _goldflags="
|
|
-X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.GitCommit=AlpineLinux
|
|
-X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.Version=v$pkgver
|
|
"
|
|
go build -v -ldflags "$_goldflags"
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 $pkgname -t "$pkgdir"/usr/bin/
|
|
|
|
mkdir -p "$pkgdir"/usr/share/doc/linuxkit/examples
|
|
cp -r ../../../examples/*.yml "$pkgdir"/usr/share/doc/linuxkit/examples/
|
|
}
|
|
|
|
sha512sums="
|
|
1dbf61294cfb3f87c012e87ceecf1a78c8ecf5313d4a73582ca6f7fcbad8bd326fe1d4922c9b6ecc692c95a72fd55d2d55366faf05b7eefd7516572067883542 linuxkit-1.6.0.tar.gz
|
|
b4791361a55a88e1d364603632e36c3c320cfb512773feb75485724903847d6fe6ad9b8b97e8d04f17c54e7bb14334b06934b42f7226908797e536020df4a6cf add-loongarch64-riscv64-support.patch
|
|
"
|