summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2023-12-16 12:57:09 -0700
committerMark Wagie2023-12-16 12:57:09 -0700
commit5fd507e98367d7db332a4422e28bb468a7196167 (patch)
treea63cdb9ff94bee375ae7db78d5c2175c2e09f38a
parent1a217a2229019073aa9eb0b2b1d9d1d8b2a5fabe (diff)
downloadaur-5fd507e98367d7db332a4422e28bb468a7196167.tar.gz
actually correct pkgver
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8b44ddcaa10d..b7610d658155 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gnome-shell-extension-battery-health-charging-git
pkgdesc = An extension to maximize the battery life of laptops by setting their charging threshold/modes.
- pkgver = 42+2+gede2217
+ pkgver = 42.r2.gede2217
pkgrel = 1
url = https://github.com/maniacx/Battery-Health-Charging
install = battery-health-charging.install
diff --git a/PKGBUILD b/PKGBUILD
index c5c55e9e4940..6aa3e9b33a90 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=gnome-shell-extension-battery-health-charging-git
_uuid=Battery-Health-Charging@maniacx.github.com
-pkgver=42+2+gede2217
+pkgver=42.r2.gede2217
pkgrel=1
pkgdesc="An extension to maximize the battery life of laptops by setting their charging threshold/modes."
arch=('any')
@@ -17,7 +17,7 @@ sha256sums=('SKIP')
pkgver() {
cd "$srcdir/Battery-Health-Charging"
- git describe --long --tags | sed 's/^v0//;s/-GNOME45//;s/-/+/g'
+ git describe --long --tags | sed 's/^v0//;s/-GNOME45//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {