Natanael Copa b2e68866a3 Reapply "testing/*: rebuild against Go 1.25.5"
This reverts commit 424a28d17bb5ae46472399d96c9204eb12745f22.
2025-12-03 16:54:46 +01:00

39 lines
1.3 KiB
Plaintext

maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=linuxkit
pkgver=1.8.2
pkgrel=1
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"
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="
62eb61166c45dfea932b2dceedff6035669be1ece97eeda8fe356f9025e287a11070d8b68582b5664413be4abaa0bc47739cfabd5b5df5874c6bdf9de4781e05 linuxkit-1.8.2.tar.gz
b4791361a55a88e1d364603632e36c3c320cfb512773feb75485724903847d6fe6ad9b8b97e8d04f17c54e7bb14334b06934b42f7226908797e536020df4a6cf add-loongarch64-riscv64-support.patch
"