aboutsummaryrefslogtreecommitdiffstats
path: root/testing/youki/APKBUILD
blob: c1430f0fbf45c383658a63c77f581e8152c9efec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=youki
pkgver=0.0.4
pkgrel=0
pkgdesc="A container runtime written in Rust"
url="https://github.com/containers/youki"
# ppc64le: syscalls crate inline asm is unstable for ppc64le
# s390x: nix crate lacks support
# riscv64: syscalls crate lacks support
arch="all !ppc64le !s390x !riscv64"
license="Apache-2.0"
makedepends="
	cargo
	dbus-dev
	libgit2-dev
	libseccomp-dev
	zlib-dev
	"
subpackages="$pkgname-dbg"
source="https://github.com/containers/youki/archive/v$pkgver/$pkgname-$pkgver.tar.gz
	fix-rlimit-type.patch
	"
options="!check"  # FIXME: some tests fail

# Disable systemd_cgroups
_cargo_opts='--frozen --no-default-features --features=libcgroups/v1,libcgroups/v2'

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo build $_cargo_opts --release
}

check() {
	cargo test $_cargo_opts
}

package() {
	install -D -m755 target/release/youki -t "$pkgdir"/usr/bin/
}

sha512sums="
a94e0f2dca8a7895845f3d78eebad64a0a24b234eaf9291f317478ebd910b2d528e212eefae9c784dfe71353182d643b26a9f0b64be00938a17da68302a56218  youki-0.0.4.tar.gz
4f193c21b7efc2f7322eb490fe4ec0a077a21013e1bfff1281f362310a09be62d11925c8d4d7c47197b371ad9635e53bb486a4e032dc0f56bdf6d195258fdb0c  fix-rlimit-type.patch
"