summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorzswdcx2021-08-28 18:50:17 +0800
committerzswdcx2021-08-28 18:50:17 +0800
commitb34bdae07202f3e769b8a08d677aca670eb8e34c (patch)
tree057a7f272f09d5905f27c473c7889c45396ca0ae /PKGBUILD
parent3ae76a285b2fdd401f134663b52fa31743385eac (diff)
downloadaur-b34bdae07202f3e769b8a08d677aca670eb8e34c.tar.gz
github raw2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f7ef35028b3..38117999646 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -36,8 +36,9 @@ sha256sums=(
)
pkgver() {
- cd "$pkgname"
- git describe --long --tags | sed 's/([^-]*-g)/r\1/;s/-/./g'
+ cd "${srcdir}/${pkgname}"
+ git switch release >/dev/null 2>&1
+ printf "r%s" "$(git log --pretty=\"format:%B\" HEAD | tr -dc '[:digit:]')"
}
package() {