From 7ace3953881e11b5c667c2d0a55195ce223bb353 Mon Sep 17 00:00:00 2001 From: antheas Date: Sat, 6 Jul 2024 20:15:19 +0300 Subject: [PATCH] add ppd deps to adjustor packaging + python-fuse --- MANIFEST.in | 3 ++- PKGBUILD | 4 +++- adjustor.spec | 7 ++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index c1225f4..a2cf6a3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ recursive-include src/adjustor *.yml recursive-include src/adjustor *.yaml -recursive-include src/adjustor *.xml.in \ No newline at end of file +recursive-include src/adjustor *.xml.in +graft usr/ \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD index 81f4386..77e3236 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,7 +6,7 @@ pkgdesc='Adjustor, a userspace program for managing the TDP of handheld devices. arch=('x86_64') url='https://github.com/hhd-dev/adjustor' license=('GPL-3.0-or-later') -depends=('python' 'python-rich' 'python-pyroute2' 'python-fuse') +depends=('python' 'python-rich' 'python-pyroute2' 'python-fuse' 'python-gobject') provides=('adjustor') optdepends=('hhd: adds adjustor to the hhd ui.' 'acpi_call: required for setting TDP (may be provided as a kernel patch).') makedepends=('python-'{'build','installer','setuptools','wheel','fuse'}) @@ -21,4 +21,6 @@ build() { package() { cd "adjustor-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl + mkdir -p ${pkgdir}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf + install -m644 usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf ${pkgdir}/usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf } diff --git a/adjustor.spec b/adjustor.spec index 91a99c2..1d14061 100644 --- a/adjustor.spec +++ b/adjustor.spec @@ -19,6 +19,8 @@ Requires: python3 Requires: python3-rich Requires: python3-yaml Requires: python3-pyroute2 +Requires: python3-gobject +Requires: python-fuse %description Handheld Daemon is a project that aims to provide utilities for managing handheld devices. With features ranging from TDP controls, to controller remappings, and gamescope session management. This will be done through a plugin system and an HTTP(/d-bus?) daemon, which will expose the settings of the plugins in a UI agnostic way. @@ -31,10 +33,13 @@ Handheld Daemon is a project that aims to provide utilities for managing handhel %install %{python3} -m installer --destdir="%{buildroot}" dist/*.whl +mkdir -p %{buildroot}%{_datarootdir}/dbus-1/system.d +install -m644 usr/share/dbus-1/system.d/hhd-net.hadess.PowerProfiles.conf %{buildroot}%{_datarootdir}/dbus-1/system.d/%{name}-net.hadess.PowerProfiles.conf %files %doc readme.md %license LICENSE %{_bindir}/adj %{_bindir}/%{name}* -%{python3_sitelib}/%{name}* \ No newline at end of file +%{python3_sitelib}/%{name}* +%{_datarootdir}/dbus-1/system.d/%{name}-net.hadess.PowerProfiles.conf \ No newline at end of file