blob: 66548dfddf82979b8367a45d440dd7735904c8c7 (
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
|
# Copyright 2026 Gurov <thuggerthugger1@duck.com>
# Distributed under the terms of the GNU General Public License v2
require cargo [ rust_minimum_version=1.85 ] \
gitlab [ prefix=https://gitlab.steamos.cloud user=holo tag=${PV} new_download_scheme=true ] \
systemd-service [ systemd_files=[ dmemcg-booster-system.service ] systemd_user_files=[ dmemcg-booster-user.service ] ]
SUMMARY="Boost foreground games with dmem cgroup limits"
LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64"
DEPENDENCIES+="
build:
dev-util/pkgconf
build+run:
sys-apps/dbus
run:
sys-apps/systemd
"
src_unpack() {
gitlab_src_unpack
edo cd "${WORK}"
ecargo_fetch
}
src_prepare() {
default
edo sed -i "s@ExecStart=/usr/bin/dmemcg-booster@ExecStart=/usr/$(exhost --target)/bin/dmemcg-booster@" \
dmemcg-booster-{system,user}.service
}
src_install() {
cargo_src_install
install_systemd_files
}
|