Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions srcpkgs/switcheroo-control/files/switcheroo-control/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
sv check dbus >/dev/null || exit 1
exec /usr/libexec/switcheroo-control
25 changes: 25 additions & 0 deletions srcpkgs/switcheroo-control/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Template file for 'switcheroo-control'
pkgname=switcheroo-control
version=3.0
revision=1
build_style=meson
configure_args="-Dsystemdsystemunitdir=/usr/lib/systemd/system/"
hostmakedepends="pkg-config glib-devel"
makedepends="libglib-devel libgudev-devel libdrm-devel"
depends="python3-gobject"
checkdepends="python3-dbusmock umockdev-devel"
short_desc="D-Bus service to check the availability of dual-GPU"
maintainer="oreo639 <[email protected]>"
license="GPL-3.0-or-later"
homepage="https://gitlab.freedesktop.org/hadess/switcheroo-control"
changelog="https://gitlab.freedesktop.org/hadess/switcheroo-control/-/raw/main/NEWS"
distfiles="https://gitlab.freedesktop.org/hadess/switcheroo-control/-/archive/${version}/power-profiles-daemon-${version}.tar.gz"
checksum=f58ab3d265c6ed3abeea6113d850fbc6ffb07216d20a2f342e2a91675b01ac05

if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=true"
fi

post_install() {
vsv switcheroo-control
}