Skip to content

Commit 42ebf6c

Browse files
committed
New package: scx-loader-1.0.20
1 parent 6f925e4 commit 42ebf6c

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
export NO_COLOR=1
3+
[ -d /sys/kernel/sched_ext ] || exit 1
4+
[ -d /sys/kernel/debug ] || exit 2
5+
exec scx_loader 2>&1

srcpkgs/scx-loader/template

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Template file for 'scx-loader'
2+
pkgname=scx-loader
3+
version=1.0.20
4+
revision=1
5+
archs="x86_64* aarch64*"
6+
conf_files=/etc/scx_loader.toml
7+
build_style=cargo
8+
depends="dbus polkit scx"
9+
short_desc="Dbus loader for sched_ext schedulers"
10+
maintainer="Chloé Vulquin <code@toast.bunkerlabs.net>"
11+
license="GPL-2.0-only"
12+
homepage="https://github.com/sched-ext/scx-loader"
13+
distfiles="https://github.com/sched-ext/scx-loader/archive/refs/tags/v${version}.tar.gz"
14+
checksum=24ba8ef16504b74f7d0c0e6d5da21d3dce146ece1e6cf5ba3f6f9085c6c383b3
15+
nocross="cargo:warning=cc1: error: bad value 'armv8-a' for '-march=' switch"
16+
17+
do_install() {
18+
vbin target/"$RUST_TARGET"/release/scx_loader
19+
vbin target/"$RUST_TARGET"/release/scxctl
20+
21+
vinstall services/org.scx.Loader.service 644 /usr/share/dbus-1/system-services
22+
vinstall configs/org.scx.Loader.conf 644 /usr/share/dbus-1/system.d
23+
vinstall configs/org.scx.Loader.xml 644 /usr/share/dbus-1/interfaces
24+
vinstall configs/org.scx.Loader.policy 644 /usr/share/polkit-1/actions
25+
26+
vconf configs/scx_loader.toml
27+
vsv scx-loader
28+
}

0 commit comments

Comments
 (0)