summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2021-01-17 15:11:48 -0700
committerMark Wagie2021-01-17 15:11:48 -0700
commit818c6395bfd87662309d4db01d1a8af760c78966 (patch)
treea764a2bd71236909cc1fc362d9526411085d308e
parent0b4b0297a5452cc17d727d159e5214aa6ef3a38d (diff)
downloadaur-818c6395bfd87662309d4db01d1a8af760c78966.tar.gz
optimize pkgver()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 3 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9e62dcd9e23..b6f7ac627a8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = guiscrcpy-git
pkgdesc = Open Source GUI based Android Screen Mirroring System
- pkgver = 4.7.4.r1161.g37572d3
+ pkgver = 4.8.0.post1.r1213.g8f0ba41
pkgrel = 1
url = https://guiscrcpy.github.io
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index ed65a15acf2..109d88b8b70 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=guiscrcpy-git
-pkgver=4.7.4.r1161.g37572d3
+pkgver=4.8.0.post1.r1213.g8f0ba41
pkgrel=1
pkgdesc="Open Source GUI based Android Screen Mirroring System"
arch=('any')
@@ -19,9 +19,7 @@ sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
-# git describe --long --tags --match "[0-9]*" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-# git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
- printf "%s.r%s.g%s" "$(grep -oP "(?<=version=\"v).*(?=\")" setup.py)" \
+ printf "%s.r%s.g%s" "$(python setup.py --version)" \
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}