diff options
author | Sakith B. | 2023-11-18 13:28:46 +0530 |
---|---|---|
committer | Sakith B. | 2023-11-18 13:29:21 +0530 |
commit | 7d9aaf26025251c43632cc1fc81d06e4a52515a5 (patch) | |
tree | 477f2eb50293a6b2eeea1a5702af48dcc9e169ad | |
parent | 574faa1f369cac09804e43bb251758b9f8d3729c (diff) | |
download | aur-gnome-shell-extension-media-controls.tar.gz |
updated pkgbuild
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 9 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = gnome-shell-extension-media-controls pkgdesc = A media indicator for the GNOME shell pkgver = 20 -pkgrel = 4 +pkgrel = 5 url = https://github.com/sakithb/media-controls arch = any license = MIT @@ -1,6 +1,6 @@ pkgname=gnome-shell-extension-media-controls -pkgver=28 -pkgrel=2 +pkgver=29 +pkgrel=1 pkgdesc="A media indicator for the GNOME shell" arch=('any') url="https://github.com/cliffniff/media-controls" @@ -13,14 +13,17 @@ source=("https://github.com/sakithb/media-controls/releases/latest/download/exte sha256sums=('SKIP') pkgver() { - cd "$pkgname" - git describe --tags --abbrev=0 | sed 's/^v\(.*\)/\1/' + cd "$srcdir" + cat metadata.json | grep '"version"' | sed 's/[^0-9]*//g' } package() { + cd "$srcdir" + rm extension.zip + destdir="$pkgdir/usr/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/" mkdir -p "$destdir" install -dm755 "$destdir" - cp -r "$srcdir" "$destdir" + cp -r * "$destdir/" } |