* [PR PATCH] New package: auto-cpufreq-2.2.0
@ 2024-02-20 20:17 meator
2024-02-20 20:32 ` [PR PATCH] [Updated] " meator
` (19 more replies)
0 siblings, 20 replies; 21+ messages in thread
From: meator @ 2024-02-20 20:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]
There is a new pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 5912 bytes --]
From 82d6bc0db46b82b986f94292fa09e2c46423de0c Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.2.0
---
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 3 ++
.../disable_poetry_dynamic_versioning.patch | 25 ++++++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++++
.../patches/fix_other_icon_path.patch | 13 ++++++++
srcpkgs/auto-cpufreq/template | 30 +++++++++++++++++++
5 files changed, 86 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 0000000000000..e30c3badae655
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 0000000000000..ad7cc733a9446
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 0000000000000..18f4b04e8b7eb
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 0000000000000..a982d60e688bd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 0000000000000..4a465df082961
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,30 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.2.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests"
+makedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v2.2.0.tar.gz"
+checksum=d84d45a1638f5bff72b5ce7c1653886143cdbb4c6b198e63e054b6a18f7ade68
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vinstall scripts/cpufreqctl.sh 755 usr/share/auto-cpufreq/scripts
+ vsv auto-cpufreq
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Updated] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
@ 2024-02-20 20:32 ` meator
2024-02-20 20:48 ` meator
` (18 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-20 20:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
There is an updated pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 5916 bytes --]
From df32fb2dddb93ce5759e41b661e74629575dd4ab Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.2.0
---
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 3 ++
.../disable_poetry_dynamic_versioning.patch | 25 ++++++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++++
.../patches/fix_other_icon_path.patch | 13 ++++++++
srcpkgs/auto-cpufreq/template | 30 +++++++++++++++++++
5 files changed, 86 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 0000000000000..e30c3badae655
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 0000000000000..ad7cc733a9446
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 0000000000000..18f4b04e8b7eb
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 0000000000000..a982d60e688bd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 0000000000000..7babf41262443
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,30 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.2.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests"
+hostmakedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v2.2.0.tar.gz"
+checksum=d84d45a1638f5bff72b5ce7c1653886143cdbb4c6b198e63e054b6a18f7ade68
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vinstall scripts/cpufreqctl.sh 755 usr/share/auto-cpufreq/scripts
+ vsv auto-cpufreq
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Updated] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
2024-02-20 20:32 ` [PR PATCH] [Updated] " meator
@ 2024-02-20 20:48 ` meator
2024-02-20 21:06 ` meator
` (17 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-20 20:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
There is an updated pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 5926 bytes --]
From 26b335a0de5bbbff60e149364918143a4414f510 Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.2.0
---
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 3 ++
.../disable_poetry_dynamic_versioning.patch | 25 ++++++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++++
.../patches/fix_other_icon_path.patch | 13 ++++++++
srcpkgs/auto-cpufreq/template | 30 +++++++++++++++++++
5 files changed, 86 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 0000000000000..e30c3badae655
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 0000000000000..ad7cc733a9446
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 0000000000000..18f4b04e8b7eb
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 0000000000000..a982d60e688bd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 0000000000000..63919538e9f5b
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,30 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.2.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests"
+hostmakedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps dmidecode python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v2.2.0.tar.gz"
+checksum=d84d45a1638f5bff72b5ce7c1653886143cdbb4c6b198e63e054b6a18f7ade68
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vinstall scripts/cpufreqctl.sh 755 usr/share/auto-cpufreq/scripts
+ vsv auto-cpufreq
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Updated] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
2024-02-20 20:32 ` [PR PATCH] [Updated] " meator
2024-02-20 20:48 ` meator
@ 2024-02-20 21:06 ` meator
2024-02-20 21:43 ` meator
` (16 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-20 21:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
There is an updated pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 6000 bytes --]
From 4de2a04d06f4fbb4da93fb403d4100dc68cf55d9 Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.2.0
---
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 3 ++
.../disable_poetry_dynamic_versioning.patch | 25 ++++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++
.../patches/fix_other_icon_path.patch | 13 +++++++
srcpkgs/auto-cpufreq/template | 34 +++++++++++++++++++
5 files changed, 90 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 0000000000000..e30c3badae655
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 0000000000000..ad7cc733a9446
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 0000000000000..18f4b04e8b7eb
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 0000000000000..a982d60e688bd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 0000000000000..d55ff65a2ddb4
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,34 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.2.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests"
+hostmakedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps dmidecode python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v2.2.0.tar.gz"
+checksum=d84d45a1638f5bff72b5ce7c1653886143cdbb4c6b198e63e054b6a18f7ade68
+
+post_patch() {
+ patch -Np1 < nix/patches/prevent-install-and-copy.patch
+}
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vinstall scripts/cpufreqctl.sh 755 usr/share/auto-cpufreq/scripts
+ vsv auto-cpufreq
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Updated] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (2 preceding siblings ...)
2024-02-20 21:06 ` meator
@ 2024-02-20 21:43 ` meator
2024-02-20 21:53 ` meator
` (15 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-20 21:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
There is an updated pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 6065 bytes --]
From f6f6bc7a368983647b04aaff219e541e31d29c7f Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.2.0
---
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 3 ++
.../disable_poetry_dynamic_versioning.patch | 25 +++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++
.../patches/fix_other_icon_path.patch | 13 +++++++
srcpkgs/auto-cpufreq/template | 35 +++++++++++++++++++
5 files changed, 91 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 0000000000000..e30c3badae655
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 0000000000000..ad7cc733a9446
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 0000000000000..18f4b04e8b7eb
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 0000000000000..a982d60e688bd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 0000000000000..12546d2a0188d
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,35 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.2.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests"
+hostmakedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps dmidecode python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v2.2.0.tar.gz"
+checksum=d84d45a1638f5bff72b5ce7c1653886143cdbb4c6b198e63e054b6a18f7ade68
+
+post_patch() {
+ patch -Np1 < nix/patches/prevent-install-and-copy.patch
+}
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vbin scripts/cpufreqctl.sh cpufreqctl.auto-cpufreq
+ vsv auto-cpufreq
+ vinstall scripts/org.auto-cpufreq.pkexec.policy 644 usr/share/polkit-1/actions
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Updated] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (3 preceding siblings ...)
2024-02-20 21:43 ` meator
@ 2024-02-20 21:53 ` meator
2024-02-20 23:17 ` meator
` (14 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-20 21:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
There is an updated pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 6070 bytes --]
From 48869ac60511cc220d2483ffdcea125769b512b2 Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.2.0
---
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 3 ++
.../disable_poetry_dynamic_versioning.patch | 25 +++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++
.../patches/fix_other_icon_path.patch | 13 +++++++
srcpkgs/auto-cpufreq/template | 35 +++++++++++++++++++
5 files changed, 91 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 0000000000000..e30c3badae655
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 0000000000000..ad7cc733a9446
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 0000000000000..18f4b04e8b7eb
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 0000000000000..a982d60e688bd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 0000000000000..023235b18f357
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,35 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.2.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests"
+hostmakedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps dmidecode python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v${version}.tar.gz"
+checksum=d84d45a1638f5bff72b5ce7c1653886143cdbb4c6b198e63e054b6a18f7ade68
+
+post_patch() {
+ patch -Np1 < nix/patches/prevent-install-and-copy.patch
+}
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vbin scripts/cpufreqctl.sh cpufreqctl.auto-cpufreq
+ vsv auto-cpufreq
+ vinstall scripts/org.auto-cpufreq.pkexec.policy 644 usr/share/polkit-1/actions
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Updated] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (4 preceding siblings ...)
2024-02-20 21:53 ` meator
@ 2024-02-20 23:17 ` meator
2024-02-20 23:22 ` meator
` (13 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-20 23:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
There is an updated pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 6990 bytes --]
From 280fb1b4a0319d2d88a90e6d5d3e2126a2fe92a8 Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.2.0
---
srcpkgs/auto-cpufreq/files/README.voidlinux | 4 +++
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 14 ++++++++
.../disable_poetry_dynamic_versioning.patch | 25 +++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++
.../patches/fix_other_icon_path.patch | 13 +++++++
srcpkgs/auto-cpufreq/template | 36 +++++++++++++++++++
6 files changed, 107 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/README.voidlinux
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/README.voidlinux b/srcpkgs/auto-cpufreq/files/README.voidlinux
new file mode 100644
index 0000000000000..5d41268ed9cda
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/README.voidlinux
@@ -0,0 +1,4 @@
+If you are using GNOME, you should turn off the GNOME Power Profiles daemon.
+This can turn it off permanently using the following command:
+
+# touch /etc/sv/power-profiles-daemon/down
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 0000000000000..ad00319bf9d0e
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,14 @@
+#!/bin/sh
+exec 2>&1
+
+# Test whether the power-profiles-daemon service exists
+if sv status power-profiles-daemon 2>/dev/null; then
+ # Make sure that it isn't running
+ if sv status power-profiles-daemon | grep -q "^run"; then
+ echo "Please disable power-profiles-daemon runit service " \
+ "to make auto-cpufreq work!"
+ exit 1
+ fi
+fi
+
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 0000000000000..ad7cc733a9446
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 0000000000000..18f4b04e8b7eb
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 0000000000000..a982d60e688bd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 0000000000000..c6a9e38a0dbf0
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,36 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.2.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests"
+hostmakedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps dmidecode python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v${version}.tar.gz"
+checksum=d84d45a1638f5bff72b5ce7c1653886143cdbb4c6b198e63e054b6a18f7ade68
+
+post_patch() {
+ patch -Np1 < nix/patches/prevent-install-and-copy.patch
+}
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vbin scripts/cpufreqctl.sh cpufreqctl.auto-cpufreq
+ vinstall scripts/org.auto-cpufreq.pkexec.policy 644 usr/share/polkit-1/actions
+ vdoc ${FILESDIR}/README.voidlinux
+ vsv auto-cpufreq
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (5 preceding siblings ...)
2024-02-20 23:17 ` meator
@ 2024-02-20 23:22 ` meator
2024-02-21 0:17 ` abenson
` (12 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-20 23:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
New comment by meator on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#issuecomment-1955319739
Comment:
I am unsure whether the `power-profiles-daemon` detection mechanism in the runit service is acceptable, but everything else should be OK.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (6 preceding siblings ...)
2024-02-20 23:22 ` meator
@ 2024-02-21 0:17 ` abenson
2024-02-21 5:52 ` [PR REVIEW] " Luciogi
` (11 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: abenson @ 2024-02-21 0:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
New comment by abenson on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#issuecomment-1955469393
Comment:
I wouldn't guard it. I would just have a note in the `README.voidlinux` that the two conflict and should not be run at the same time.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR REVIEW] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (7 preceding siblings ...)
2024-02-21 0:17 ` abenson
@ 2024-02-21 5:52 ` Luciogi
2024-02-21 5:55 ` Luciogi
` (10 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: Luciogi @ 2024-02-21 5:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 164 bytes --]
New review comment by Luciogi on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#discussion_r1496945797
Comment:
KDE also uses it
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR REVIEW] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (8 preceding siblings ...)
2024-02-21 5:52 ` [PR REVIEW] " Luciogi
@ 2024-02-21 5:55 ` Luciogi
2024-02-21 7:54 ` meator
` (9 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: Luciogi @ 2024-02-21 5:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
New review comment by Luciogi on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#discussion_r1496947792
Comment:
![image](https://github.com/void-linux/void-packages/assets/84625092/473d9236-8f3a-4505-a2bf-758e22254796)
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR REVIEW] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (9 preceding siblings ...)
2024-02-21 5:55 ` Luciogi
@ 2024-02-21 7:54 ` meator
2024-02-21 7:56 ` [PR PATCH] [Updated] " meator
` (8 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-21 7:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 387 bytes --]
New review comment by meator on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#discussion_r1497046839
Comment:
```
xbps-query -RX power-profiles-daemon
```
lists `gnome` as the only reverse dependency. Is `power-profiles-daemon` an optional dependency in KDE?
I have mentioned only GNOME in the README because that's what upstream warns about.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Updated] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (10 preceding siblings ...)
2024-02-21 7:54 ` meator
@ 2024-02-21 7:56 ` meator
2024-02-21 7:57 ` meator
` (7 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-21 7:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
There is an updated pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 6665 bytes --]
From 4e9948b48d9932159c98b55f1afc99fe9419b918 Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.2.0
---
srcpkgs/auto-cpufreq/files/README.voidlinux | 4 +++
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 3 ++
.../disable_poetry_dynamic_versioning.patch | 25 +++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++
.../patches/fix_other_icon_path.patch | 13 +++++++
srcpkgs/auto-cpufreq/template | 36 +++++++++++++++++++
6 files changed, 96 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/README.voidlinux
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/README.voidlinux b/srcpkgs/auto-cpufreq/files/README.voidlinux
new file mode 100644
index 00000000000000..3ef3d53ff8d8dc
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/README.voidlinux
@@ -0,0 +1,4 @@
+If you are using GNOME or KDE, you should turn off the Power Profiles daemon.
+This can turn it off permanently using the following command:
+
+# touch /etc/sv/power-profiles-daemon/down
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 00000000000000..e30c3badae655a
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 00000000000000..ad7cc733a94466
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 00000000000000..18f4b04e8b7eb6
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 00000000000000..a982d60e688bdd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 00000000000000..c6a9e38a0dbf0d
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,36 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.2.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests"
+hostmakedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps dmidecode python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v${version}.tar.gz"
+checksum=d84d45a1638f5bff72b5ce7c1653886143cdbb4c6b198e63e054b6a18f7ade68
+
+post_patch() {
+ patch -Np1 < nix/patches/prevent-install-and-copy.patch
+}
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vbin scripts/cpufreqctl.sh cpufreqctl.auto-cpufreq
+ vinstall scripts/org.auto-cpufreq.pkexec.policy 644 usr/share/polkit-1/actions
+ vdoc ${FILESDIR}/README.voidlinux
+ vsv auto-cpufreq
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (11 preceding siblings ...)
2024-02-21 7:56 ` [PR PATCH] [Updated] " meator
@ 2024-02-21 7:57 ` meator
2024-02-21 8:06 ` meator
` (6 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-21 7:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 463 bytes --]
New comment by meator on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#issuecomment-1956078277
Comment:
> I wouldn't guard it. I would just have a note in the `README.voidlinux` that the two conflict and should not be run at the same time.
@abenson I don't think many people read or know about the `README.voidlinux` specific documentation. Having a safeguard, although a not "100%" one, could be useful. What do you think?
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (12 preceding siblings ...)
2024-02-21 7:57 ` meator
@ 2024-02-21 8:06 ` meator
2024-02-21 11:38 ` [PR REVIEW] " Luciogi
` (5 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-21 8:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 919 bytes --]
New comment by meator on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#issuecomment-1956078277
Comment:
> I wouldn't guard it. I would just have a note in the `README.voidlinux` that the two conflict and should not be run at the same time.
@abenson I don't think many people read or know about the `README.voidlinux` specific documentation. Having a safeguard, although a not "100%" one, could be useful. What do you think?
A proper safeguard would require adding the same check, but reverse, to `power-profiles-daemon` runit service. Doing that is intrusive, so I didn't do it. There might also be some other edge cases that I haven't thought of. Also this advanced usage of runit isn't really supported by runit well, it doesn't really have a built in way to have dependencies in services or have mutually exclusive services (which is required here) except `sv` shenanigans.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR REVIEW] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (13 preceding siblings ...)
2024-02-21 8:06 ` meator
@ 2024-02-21 11:38 ` Luciogi
2024-02-21 11:40 ` Luciogi
` (4 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: Luciogi @ 2024-02-21 11:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
New review comment by Luciogi on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#discussion_r1497374140
Comment:
specifically `powerdevil` that requires `power-profile-daemon`, idk why it is not explicitly added as runtime dependency
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR REVIEW] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (14 preceding siblings ...)
2024-02-21 11:38 ` [PR REVIEW] " Luciogi
@ 2024-02-21 11:40 ` Luciogi
2024-02-21 18:40 ` meator
` (3 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: Luciogi @ 2024-02-21 11:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 249 bytes --]
New review comment by Luciogi on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#discussion_r1497375800
Comment:
Arch package: https://archlinux.org/packages/extra/x86_64/powerdevil/
adds it as optional dependency
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR REVIEW] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (15 preceding siblings ...)
2024-02-21 11:40 ` Luciogi
@ 2024-02-21 18:40 ` meator
2024-05-09 11:15 ` [PR PATCH] [Updated] " meator
` (2 subsequent siblings)
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-02-21 18:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 156 bytes --]
New review comment by meator on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#discussion_r1498109639
Comment:
Ok, done.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Updated] New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (16 preceding siblings ...)
2024-02-21 18:40 ` meator
@ 2024-05-09 11:15 ` meator
2024-08-08 1:52 ` github-actions
2024-08-22 1:53 ` [PR PATCH] [Closed]: " github-actions
19 siblings, 0 replies; 21+ messages in thread
From: meator @ 2024-05-09 11:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]
There is an updated pull request by meator against master on the void-packages repository
https://github.com/meator/void-packages auto-cpufreq
https://github.com/void-linux/void-packages/pull/48854
New package: auto-cpufreq-2.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/48854.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-auto-cpufreq-48854.patch --]
[-- Type: text/x-diff, Size: 6681 bytes --]
From 8fca5f8a01556358542bba21faa9154677a0a633 Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Tue, 20 Feb 2024 21:14:04 +0100
Subject: [PATCH] New package: auto-cpufreq-2.3.0
---
srcpkgs/auto-cpufreq/files/README.voidlinux | 4 +++
srcpkgs/auto-cpufreq/files/auto-cpufreq/run | 3 ++
.../disable_poetry_dynamic_versioning.patch | 25 +++++++++++++
.../patches/fix_icon_n_style_locations.patch | 15 ++++++++
.../patches/fix_other_icon_path.patch | 13 +++++++
srcpkgs/auto-cpufreq/template | 36 +++++++++++++++++++
6 files changed, 96 insertions(+)
create mode 100644 srcpkgs/auto-cpufreq/files/README.voidlinux
create mode 100644 srcpkgs/auto-cpufreq/files/auto-cpufreq/run
create mode 100644 srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
create mode 100644 srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
create mode 100644 srcpkgs/auto-cpufreq/template
diff --git a/srcpkgs/auto-cpufreq/files/README.voidlinux b/srcpkgs/auto-cpufreq/files/README.voidlinux
new file mode 100644
index 00000000000000..3ef3d53ff8d8dc
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/README.voidlinux
@@ -0,0 +1,4 @@
+If you are using GNOME or KDE, you should turn off the Power Profiles daemon.
+This can turn it off permanently using the following command:
+
+# touch /etc/sv/power-profiles-daemon/down
diff --git a/srcpkgs/auto-cpufreq/files/auto-cpufreq/run b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
new file mode 100644
index 00000000000000..e30c3badae655a
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/files/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec auto-cpufreq --daemon
diff --git a/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
new file mode 100644
index 00000000000000..ad7cc733a94466
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/disable_poetry_dynamic_versioning.patch
@@ -0,0 +1,25 @@
+The pyproject.toml already sets the correct version, so the version detection
+system doesn't even have to be replaced.
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -32,18 +32,12 @@
+ poetry = "^1.6.1"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+-build-backend = "poetry_dynamic_versioning.backend"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry.scripts]
+ auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
+ auto-cpufreq-gtk = "auto_cpufreq.bin.auto_cpufreq_gtk:main"
+
+-# https://github.com/mtkennerly/poetry-dynamic-versioning
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-format = "v{base}+{commit}"
+-
+ # SideNote
+ # Regarding zip_safe = https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html
diff --git a/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
new file mode 100644
index 00000000000000..18f4b04e8b7eb6
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_icon_n_style_locations.patch
@@ -0,0 +1,15 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/001-fix-icon-n-style-locations.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/app.py
++++ b/auto_cpufreq/gui/app.py
+@@ -20,8 +20,8 @@
+ ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
+ CSS_FILE = "/snap/auto-cpufreq/current/style.css"
+ else:
+- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+- CSS_FILE = "/usr/local/share/auto-cpufreq/scripts/style.css"
++ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"
++ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"
+
+ HBOX_PADDING = 20
+ PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
diff --git a/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
new file mode 100644
index 00000000000000..a982d60e688bdd
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/patches/fix_other_icon_path.patch
@@ -0,0 +1,13 @@
+This patch is taken from
+https://aur.archlinux.org/cgit/aur.git/tree/002-fix-other-icon-path.patch?h=auto-cpufreq&id=2cb3f7935e7e0252e15d8dbcf1309ab246e143cf
+--- a/auto_cpufreq/gui/objects.py
++++ b/auto_cpufreq/gui/objects.py
+@@ -221,7 +221,7 @@
+ self.add_button("Close", Gtk.ResponseType.CLOSE)
+ self.set_default_size(400, 350)
+ img_buffer = GdkPixbuf.Pixbuf.new_from_file_at_scale(
+- filename="/usr/local/share/auto-cpufreq/images/icon.png",
++ filename="/usr/share/pixmaps/auto-cpufreq.png",
+ width=150,
+ height=150,
+ preserve_aspect_ratio=True)
diff --git a/srcpkgs/auto-cpufreq/template b/srcpkgs/auto-cpufreq/template
new file mode 100644
index 00000000000000..d6106d01d2651a
--- /dev/null
+++ b/srcpkgs/auto-cpufreq/template
@@ -0,0 +1,36 @@
+# Template file for 'auto-cpufreq'
+pkgname=auto-cpufreq
+version=2.3.0
+revision=1
+build_style=python3-pep517
+# auto-cpufreq is executed in post_install() to get completions, so masterdir
+# needs part of $depends installed
+_core_deps="python3-click python3-psutil python3-distro python3-requests python3-inotify"
+hostmakedepends="python3-poetry-core $_core_deps"
+depends="$_core_deps dmidecode python3-gobject gtk+3"
+short_desc="Automatic CPU speed & power optimizer for Linux"
+maintainer="meator <meator.dev@gmail.com>"
+license="LGPL-3.0-only"
+homepage="https://github.com/AdnanHodzic/auto-cpufreq"
+distfiles="https://github.com/AdnanHodzic/auto-cpufreq/archive/refs/tags/v${version}.tar.gz"
+checksum=dba5a29a23b209f4ab398fd355cd9214353699e59df83d3eeb001a83a659cb00
+
+post_patch() {
+ patch -Np1 < nix/patches/prevent-install-and-copy.patch
+}
+
+post_install() {
+ vsconf auto-cpufreq.conf-example auto-cpufreq.conf
+ vinstall scripts/auto-cpufreq-gtk.desktop 644 usr/share/applications
+ vinstall images/icon.png 644 usr/share/pixmaps auto-cpufreq.png
+ vinstall scripts/style.css 644 usr/share/auto-cpufreq/scripts
+ vbin scripts/cpufreqctl.sh cpufreqctl.auto-cpufreq
+ vinstall scripts/org.auto-cpufreq.pkexec.policy 644 usr/share/polkit-1/actions
+ vdoc ${FILESDIR}/README.voidlinux
+ vsv auto-cpufreq
+
+ for completion in bash fish zsh; do
+ PYTHONPATH=$DESTDIR/$py3_sitelib _AUTO_CPUFREQ_COMPLETE=${completion}_source ${DESTDIR}/usr/bin/auto-cpufreq > auto-cpufreq.$completion
+ vcompletion auto-cpufreq.$completion $completion
+ done
+}
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (17 preceding siblings ...)
2024-05-09 11:15 ` [PR PATCH] [Updated] " meator
@ 2024-08-08 1:52 ` github-actions
2024-08-22 1:53 ` [PR PATCH] [Closed]: " github-actions
19 siblings, 0 replies; 21+ messages in thread
From: github-actions @ 2024-08-08 1:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/48854#issuecomment-2274783662
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PR PATCH] [Closed]: New package: auto-cpufreq-2.2.0
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
` (18 preceding siblings ...)
2024-08-08 1:52 ` github-actions
@ 2024-08-22 1:53 ` github-actions
19 siblings, 0 replies; 21+ messages in thread
From: github-actions @ 2024-08-22 1:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
There's a closed pull request on the void-packages repository
New package: auto-cpufreq-2.2.0
https://github.com/void-linux/void-packages/pull/48854
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
`auto-cpufreq` is doing some weeeeird stuff in `auto_cpufreq/core.py`. I will likely have to patch out a lot of things there.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2024-08-22 1:53 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-20 20:17 [PR PATCH] New package: auto-cpufreq-2.2.0 meator
2024-02-20 20:32 ` [PR PATCH] [Updated] " meator
2024-02-20 20:48 ` meator
2024-02-20 21:06 ` meator
2024-02-20 21:43 ` meator
2024-02-20 21:53 ` meator
2024-02-20 23:17 ` meator
2024-02-20 23:22 ` meator
2024-02-21 0:17 ` abenson
2024-02-21 5:52 ` [PR REVIEW] " Luciogi
2024-02-21 5:55 ` Luciogi
2024-02-21 7:54 ` meator
2024-02-21 7:56 ` [PR PATCH] [Updated] " meator
2024-02-21 7:57 ` meator
2024-02-21 8:06 ` meator
2024-02-21 11:38 ` [PR REVIEW] " Luciogi
2024-02-21 11:40 ` Luciogi
2024-02-21 18:40 ` meator
2024-05-09 11:15 ` [PR PATCH] [Updated] " meator
2024-08-08 1:52 ` github-actions
2024-08-22 1:53 ` [PR PATCH] [Closed]: " github-actions
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).