From 0c357277acb7d8640b882b8a95c3dc41a5ac75e7 Mon Sep 17 00:00:00 2001 From: TheAlexDev23 Date: Sun, 8 Sep 2024 11:31:47 +0200 Subject: [PATCH] AUR packages: Added proper provides. Fixed missing dependencies in gtk package. And added conflicts for gtk package --- ci/gen_daemon_pkgbuild.py | 4 ++++ ci/gen_daemon_pkgbuild_git.py | 4 ++++ ci/gen_gtk_pkgbuild.py | 8 ++++++-- ci/gen_gtk_pkgbuild_git.py | 10 +++++++--- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/ci/gen_daemon_pkgbuild.py b/ci/gen_daemon_pkgbuild.py index 4db236b..573ac5d 100644 --- a/ci/gen_daemon_pkgbuild.py +++ b/ci/gen_daemon_pkgbuild.py @@ -18,10 +18,14 @@ def create_pkgbuild(pkgname, pkgver, url): arch=('x86_64') url="{url}" license=('MIT') + depends=('acpid' 'zsh' 'pciutils' 'usbutils') optdepends=('xorg-xrandr: needed for screen settings' 'brightnessctl: needed for brightness settings' 'net-tools: needed to disable ethernet cards') makedepends=('cargo') + +provides=('power-options-daemon') conflicts=('power-options-daemon-git') + source=("$pkgname-$pkgver.tar.gz::{url}/archive/v$pkgver.tar.gz") sha256sums=('SKIP') diff --git a/ci/gen_daemon_pkgbuild_git.py b/ci/gen_daemon_pkgbuild_git.py index 8bf3636..d91ddbe 100644 --- a/ci/gen_daemon_pkgbuild_git.py +++ b/ci/gen_daemon_pkgbuild_git.py @@ -23,10 +23,14 @@ def create_pkgbuild(pkgname, pkgver, url): arch=('x86_64') url="{url}" license=('MIT') + depends=('acpid' 'zsh' 'pciutils' 'usbutils') optdepends=('xorg-xrandr: needed for screen settings' 'brightnessctl: needed for brightness settings' 'net-tools: needed to disable ethernet cards') makedepends=('cargo' 'git') + +provides=('power-options-daemon') conflicts=('power-options-daemon') + source=("git+https://github.com/thealexdev23/power-options.git") sha256sums=('SKIP') diff --git a/ci/gen_gtk_pkgbuild.py b/ci/gen_gtk_pkgbuild.py index 15be326..4e0ccf8 100644 --- a/ci/gen_gtk_pkgbuild.py +++ b/ci/gen_gtk_pkgbuild.py @@ -18,9 +18,13 @@ def create_pkgbuild(pkgname, pkgver, url): arch=('x86_64') url={url} license=('MIT') -conflicts=('power-options-gtk-git') -depends=('power-options-daemon-git') + +depends=('power-options-daemon' 'libadwaita' 'yad') makedepends=('cargo') + +provides=('power-options-gtk') +conflicts=('power-options-gtk-git' 'tlp' 'auto-cpufreq' 'power-profiles-daemon' 'cpupower-gui') + source=("$pkgname-$pkgver.tar.gz::{url}/archive/v$pkgver.tar.gz") sha256sums=('SKIP') diff --git a/ci/gen_gtk_pkgbuild_git.py b/ci/gen_gtk_pkgbuild_git.py index d9eea28..7975716 100644 --- a/ci/gen_gtk_pkgbuild_git.py +++ b/ci/gen_gtk_pkgbuild_git.py @@ -23,9 +23,13 @@ def create_pkgbuild(pkgname, pkgver, url): arch=('x86_64') url={url} license=('MIT') -conflicts=('power-options-gtk') -depends=('power-options-daemon-git') -makedepends=('cargo') + +depends=('power-options-daemon' 'libadwaita' 'yad') +makedepends=('cargo' 'git') + +provides=('power-options-gtk') +conflicts=('power-options-gtk' 'tlp' 'auto-cpufreq' 'power-profiles-daemon' 'cpupower-gui') + source=("git+https://github.com/thealexdev23/power-options.git") sha256sums=('SKIP')