summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Göbel2020-12-16 18:49:39 +0100
committerTobias Göbel2020-12-16 18:49:39 +0100
commit978e9b37ff3ef27233da2bfb5857a6d9dd98ad47 (patch)
tree64d79e4231d298fa8500ddbde48436ab66b85437
parente2fe6bbad01d2cddb5c23b44dae6decdf1c47be6 (diff)
downloadaur-978e9b37ff3ef27233da2bfb5857a6d9dd98ad47.tar.gz
changed PKGBUILD to reflect comments from ignapk and JulianXhokaxhiu.
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD12
2 files changed, 4 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 58cbd415824..be86b791514 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gnome-shell-extension-caffeine-git
pkgdesc = Fill the cup to inhibit auto suspend and screensaver.
- pkgver = r130
+ pkgver = r131
pkgrel = 1
url = https://github.com/eonpatapon/gnome-shell-extension-caffeine
install = gschemas.install
@@ -9,11 +9,10 @@ pkgbase = gnome-shell-extension-caffeine-git
makedepends = git
depends = gnome-shell-extensions
depends = gnome-shell
- provides = gnome-shell-extension-caffeine=r130
+ provides = gnome-shell-extension-caffeine=r131
conflicts = gnome-shell-extension-caffeine
source = gnome-shell-extension-caffeine::git+https://github.com/eonpatapon/gnome-shell-extension-caffeine
md5sums = SKIP
- sha256sums = SKIP
pkgname = gnome-shell-extension-caffeine-git
diff --git a/PKGBUILD b/PKGBUILD
index 93cb504778f..f2b953dee5f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
# You may find it convenient to file issues and pull requests there.
pkgname=gnome-shell-extension-caffeine-git
-pkgver=r130
+pkgver=r131
pkgrel=1
pkgdesc="Fill the cup to inhibit auto suspend and screensaver."
arch=(any)
@@ -22,9 +22,7 @@ provides+=("$_gitname=$pkgver")
conflicts+=("$_gitname")
pkgver() {
cd ${_gitname:-$pkgname}
- git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1'
- [ ${PIPESTATUS[0]} -ne 0 ] && \
-printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
for function in $(declare -F | grep -Po 'package_[[:digit:]]+[[:alpha:]_]*$')
@@ -47,12 +45,6 @@ package_02_install() {
}
depends+=(gnome-shell-extensions)
-package_03_unify_conveniencejs() {
- ln -fs \
- ../user-theme@gnome-shell-extensions.gcampax.github.com/convenience.js \
- "$destdir/convenience.js"
-}
-
build() {
cd "$_gitname"
./update-locale.sh