-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathtemplate
More file actions
35 lines (33 loc) · 1.34 KB
/
template
File metadata and controls
35 lines (33 loc) · 1.34 KB
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
# Template file for 'scx'
pkgname=scx
version=1.0.20
revision=1
archs="x86_64* aarch64*"
build_style=cargo
# fails because it tries to read procfs dynamically
# with bwrap containment even more fail
make_check_args="-- --skip test_thread_operations"
# based on package documentation
# I suspect clang isn't actually used, and may resolve nocross
makedepends="clang libbpf-devel bpftool elfutils-devel zlib-devel libzstd-devel pkgconf libseccomp-devel"
short_desc="Sched_ext schedulers and tools"
maintainer="Chloé Vulquin <code@toast.bunkerlabs.net>"
license="GPL-2.0-only"
homepage="https://github.com/sched-ext/scx"
distfiles="https://github.com/sched-ext/scx/archive/refs/tags/v${version}.tar.gz"
checksum=d9c6b3230915dafe21556da28c6ef2a11f272770f12912842ae1ad23b54d963e
nocross="cargo:warning=cc1: error: bad value 'armv8-a' for '-march=' switch"
# cargo install does not support workspaces
# alternative: specify the wanted packages only
# requires setting do_* manually, but avoids useless build time
do_install() {
# POSIX for find … -maxdepth 1 -executable
find target/"$RUST_TARGET"/release \
! -path target/"$RUST_TARGET"/release -prune \
-type f -perm -0100 -name 'scx*' \
! -name scx_arena_selftests \
-exec install -Dm755 -t "$PKGDESTDIR"/usr/bin '{}' \+
}
post_install() {
vinstall "${FILESDIR}"/00-pseudofs-scx.sh 644 /etc/runit/core-services
}