projects/aports·blob master · refs

38 lines · 1.3 KiB

1maintainer="Hoang Nguyen <[email protected]>"
2pkgname=linuxkit
3pkgver=1.8.2
4pkgrel=7
5pkgdesc="Toolkit for building immutable operating systems for containers"
6url="https://github.com/linuxkit/linuxkit"
7# 32-bit platforms: github.com/rn/iso9660wrap: integer overflow
8arch="all !x86 !armhf !armv7"
9license="Apache-2.0"
10makedepends="go"
11subpackages="$pkgname-doc"
12source="$pkgname-$pkgver.tar.gz::https://github.com/linuxkit/linuxkit/archive/refs/tags/v$pkgver.tar.gz
13 add-loongarch64-riscv64-support.patch"
14builddir="$srcdir/$pkgname-$pkgver/src/cmd/linuxkit"
15
16build() {
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
24check() {
25 go test ./...
26}
27
28package() {
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
35sha512sums="
3662eb61166c45dfea932b2dceedff6035669be1ece97eeda8fe356f9025e287a11070d8b68582b5664413be4abaa0bc47739cfabd5b5df5874c6bdf9de4781e05 linuxkit-1.8.2.tar.gz
37b4791361a55a88e1d364603632e36c3c320cfb512773feb75485724903847d6fe6ad9b8b97e8d04f17c54e7bb14334b06934b42f7226908797e536020df4a6cf add-loongarch64-riscv64-support.patch
38"