summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-05-01 08:45:06 -0600
committerMark Wagie2020-05-01 08:45:06 -0600
commitd860a7c5946f0426a46673538156593970ae30cd (patch)
tree9ff62a4c5e8fe81b955cbe05d56803972f105c4b
parent5486005298b7ec9debe133cb2922d2a03327d3b1 (diff)
downloadaur-d860a7c5946f0426a46673538156593970ae30cd.tar.gz
adjust pkgver()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d5d681c0656..d6972b9b6ce 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = guiscrcpy-git
pkgdesc = Open Source GUI based Android Screen Mirroring System
- pkgver = 3.7.post115.dev
+ pkgver = 3.7.post115.dev.g53ccc3a
pkgrel = 1
epoch = 1
url = https://guiscrcpy.github.io
diff --git a/PKGBUILD b/PKGBUILD
index 92ec1fa4555..eb08dc60ed2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=guiscrcpy-git
-pkgver=3.7.post115.dev
+pkgver=3.7.post115.dev.g53ccc3a
pkgrel=1
epoch=1
pkgdesc="Open Source GUI based Android Screen Mirroring System"
@@ -18,7 +18,8 @@ sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
- printf $(grep -oP "(?<=version=').*(?=')" setup.py)
+ printf "%s.g%s" "$(grep -oP "(?<=version=').*(?=')" setup.py)" \
+ "$(git rev-parse --short HEAD)"
}
prepare() {