Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-cpufreq v2.4.0-1 #140

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions packages/auto-cpufreq/001-fix-icon-n-style-locations.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
diff '--color=auto' --unified --recursive --text src/auto-cpufreq-2.0.0/auto_cpufreq/gui/app.py src.new/auto-cpufreq-2.0.0/auto_cpufreq/gui/app.py
--- src/auto-cpufreq-2.0.0/auto_cpufreq/gui/app.py 2023-09-23 17:15:29.000000000 +0600
+++ src.new/auto-cpufreq-2.0.0/auto_cpufreq/gui/app.py 2023-10-08 22:17:49.178622543 +0600
@@ -16,8 +16,8 @@
ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
diff src/auto_cpufreq-2.4.0/auto_cpufreq/gui/app.py src.new/auto_cpufreq-2.4.0/auto_cpufreq/gui/app.py
--- src/auto_cpufreq-2.4.0/auto_cpufreq/gui/app.py
+++ src.new/auto_cpufreq-2.4.0/auto_cpufreq/gui/app.py
@@ -15,8 +15,8 @@ if IS_INSTALLED_WITH_SNAP:
CSS_FILE = "/snap/auto-cpufreq/current/style.css"
ICON_FILE = "/snap/auto-cpufreq/current/icon.png"
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"
- ICON_FILE = "/usr/local/share/auto-cpufreq/images/icon.png"
+ CSS_FILE = "/usr/share/auto-cpufreq/scripts/style.css"

+ ICON_FILE = "/usr/share/pixmaps/auto-cpufreq.png"

HBOX_PADDING = 20
PKEXEC_ERROR = "Error executing command as another user: Not authorized\n\nThis incident has been reported.\n"
18 changes: 9 additions & 9 deletions packages/auto-cpufreq/002-fix-other-icon-path.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff '--color=auto' --unified --recursive --text src/auto-cpufreq-2.0.0/auto_cpufreq/gui/objects.py src.new/auto-cpufreq-2.0.0/auto_cpufreq/gui/objects.py
--- src/auto-cpufreq-2.0.0/auto_cpufreq/gui/objects.py
+++ src.new/auto-cpufreq-2.0.0/auto_cpufreq/gui/objects.py
@@ -221,7 +221,7 @@ class AboutDialog(Gtk.Dialog):
diff --git src/auto_cpufreq-2.4.0/auto_cpufreq/gui/objects.py src.new/auto_cpufreq-2.4.0/auto_cpufreq/gui/objects.py
--- src/auto_cpufreq-2.4.0/auto_cpufreq/gui/objects.py
+++ src.new/auto_cpufreq-2.4.0/auto_cpufreq/gui/objects.py
@@ -193,7 +193,7 @@ class AboutDialog(Gtk.Dialog):
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)
- filename="/usr/local/share/auto-cpufreq/images/icon.png",
+ filename="/usr/share/pixemaps/auto-cpufreq.png",
width=150,
height=150,
preserve_aspect_ratio=True
8 changes: 4 additions & 4 deletions packages/auto-cpufreq/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Maintainer: Zhanibek Adilbekov <zhanibek.adilbekov@pm.me>
# shellcheck disable=SC2034,2164,2154
pkgname=auto-cpufreq
pkgver=2.3.0
pkgver=2.4.0
pkgrel=1
pkgdesc="Automatic CPU speed & power optimizer"
arch=('any')
Expand All @@ -29,10 +29,10 @@ prepare() {

}

sha256sums=('dba5a29a23b209f4ab398fd355cd9214353699e59df83d3eeb001a83a659cb00'
sha256sums=('cbaad1562c4fce3e0d9ae5b2749027bfd52190c55a19a3e2ceb2bc41371b9ee9'
'8ff1c82788f7cb6bf06151e6632aa4006eb09337daf03faa4866d23075b39e1b'
'afe7e64dbde2ea599b319e8632d72a3c237b5c4275dd31d0f40e39719193a67b'
'1f6ee3f549a0fe4d818c8301d9e6a893bfb473ad3c0d9d0b93d38fd4a6635dc5')
'227d85df7f71187c87e24388104f0127b13a680c1e859a90a14864a0d29e1fdf'
'0db58e3a6185418677a5c4f2ea15d7a1becf08bc2d955b8ffb9783190dd4666c')

build() {
cd "$srcdir/$pkgname-$pkgver"
Expand Down
Loading