Skip to content

Commit

Permalink
add ppd deps to adjustor packaging + python-fuse
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jul 6, 2024
1 parent 21b0421 commit 7ace395
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include src/adjustor *.yml
recursive-include src/adjustor *.yaml
recursive-include src/adjustor *.xml.in
recursive-include src/adjustor *.xml.in
graft usr/
4 changes: 3 additions & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
Expand All @@ -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
}
7 changes: 6 additions & 1 deletion adjustor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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}*
%{python3_sitelib}/%{name}*
%{_datarootdir}/dbus-1/system.d/%{name}-net.hadess.PowerProfiles.conf

0 comments on commit 7ace395

Please sign in to comment.