mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 10:12:59 +01:00
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=youki
|
|
pkgver=0.3.0
|
|
pkgrel=0
|
|
pkgdesc="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
|
|
# armv7: need for rustc to catch to up pass thumb-mode properly
|
|
arch="all !armv7 !ppc64le !s390x !riscv64"
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
dbus-dev
|
|
libseccomp-dev
|
|
zlib-dev
|
|
"
|
|
subpackages="$pkgname-dbg"
|
|
source="https://github.com/containers/youki/archive/v$pkgver/youki-$pkgver.tar.gz"
|
|
options="!check" # FIXME: some tests fail
|
|
|
|
# prioritize crun and runc
|
|
provides="oci-runtime"
|
|
provider_priority=80
|
|
|
|
# Disable systemd_cgroups
|
|
_cargo_opts='--frozen --no-default-features --features=libcgroups/v1,libcgroups/v2'
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build $_cargo_opts --release
|
|
}
|
|
|
|
check() {
|
|
cargo test $_cargo_opts
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 target/release/youki -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
e770d18b654128f1abc050ae47db1a6e83bd588966e3a039c5e2960138c25115459f0a1bb80cdaf13156da4beefc911f106c17f83ceb1af6796673635b0b69a4 youki-0.3.0.tar.gz
|
|
"
|