| 1 | maintainer="Hoang Nguyen <[email protected]>" |
| 2 | pkgname=linuxkit |
| 3 | pkgver=1.8.2 |
| 4 | pkgrel=7 |
| 5 | pkgdesc="Toolkit for building immutable operating systems for containers" |
| 6 | url="https://github.com/linuxkit/linuxkit" |
| 7 | # 32-bit platforms: github.com/rn/iso9660wrap: integer overflow |
| 8 | arch="all !x86 !armhf !armv7" |
| 9 | license="Apache-2.0" |
| 10 | makedepends="go" |
| 11 | subpackages="$pkgname-doc" |
| 12 | source="$pkgname-$pkgver.tar.gz::https://github.com/linuxkit/linuxkit/archive/refs/tags/v$pkgver.tar.gz |
| 13 | add-loongarch64-riscv64-support.patch" |
| 14 | builddir="$srcdir/$pkgname-$pkgver/src/cmd/linuxkit" |
| 15 | |
| 16 | build() { |
| 17 | local _goldflags=" |
| 18 | -X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.GitCommit=AlpineLinux |
| 19 | -X github.com/linuxkit/linuxkit/src/cmd/linuxkit/version.Version=v$pkgver |
| 20 | " |
| 21 | go build -v -ldflags "$_goldflags" |
| 22 | } |
| 23 | |
| 24 | check() { |
| 25 | go test ./... |
| 26 | } |
| 27 | |
| 28 | package() { |
| 29 | install -Dm755 $pkgname -t "$pkgdir"/usr/bin/ |
| 30 | |
| 31 | mkdir -p "$pkgdir"/usr/share/doc/linuxkit/examples |
| 32 | cp -r ../../../examples/*.yml "$pkgdir"/usr/share/doc/linuxkit/examples/ |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | 62eb61166c45dfea932b2dceedff6035669be1ece97eeda8fe356f9025e287a11070d8b68582b5664413be4abaa0bc47739cfabd5b5df5874c6bdf9de4781e05 linuxkit-1.8.2.tar.gz |
| 37 | b4791361a55a88e1d364603632e36c3c320cfb512773feb75485724903847d6fe6ad9b8b97e8d04f17c54e7bb14334b06934b42f7226908797e536020df4a6cf add-loongarch64-riscv64-support.patch |
| 38 | " |