summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2024-01-11 08:56:47 -0700
committerMark Wagie2024-01-11 08:56:47 -0700
commit58c1da8aa3b41e2b6e15e625c3d646f5ebf5bbd0 (patch)
tree509f14afc5e37e7bc85c37ee7617b52729d221c5
parent27222e7005a585356bf2ef1d8c3fa811cbe0cd8a (diff)
downloadaur-58c1da8aa3b41e2b6e15e625c3d646f5ebf5bbd0.tar.gz
use tags, install locale to system
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 5 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1f8867268fcf..18478cd59553 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gnome-shell-extension-bluetooth-battery-meter-git
pkgdesc = An extension featuring indicator icons in the system tray, serving as a meter for Bluetooth device battery levels.
- pkgver = r1.7d69349
+ pkgver = 002.GNOME45.r0.gd357746
pkgrel = 1
url = https://github.com/maniacx/Bluetooth-Battery-Meter
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index fd4c6cab6463..4a8f9803e496 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=gnome-shell-extension-bluetooth-battery-meter-git
_uuid=Bluetooth-Battery-Meter@maniacx.github.com
-pkgver=r1.7d69349
+pkgver=002.GNOME45.r0.gd357746
pkgrel=1
pkgdesc="An extension featuring indicator icons in the system tray, serving as a meter for Bluetooth device battery levels."
arch=('any')
@@ -16,7 +16,7 @@ sha256sums=('SKIP')
pkgver() {
cd Bluetooth-Battery-Meter
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
@@ -36,8 +36,9 @@ package() {
bsdtar -xvf "${_uuid}.shell-extension.zip" -C \
"$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/" --no-same-owner
- # Does not detect icons in system and no locale yet
+ # Does not detect icons in system
# mv "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}"/{icons,locale} "$pkgdir/usr/share/"
+ mv "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/locale" "$pkgdir/usr/share/"
install -Dm644 schemas/org.gnome.shell.extensions.Bluetooth-Battery-Meter.gschema.xml -t \
"$pkgdir/usr/share/glib-2.0/schemas/"