diff options
author | imskyyc | 2024-03-16 20:34:20 -0700 |
---|---|---|
committer | imskyyc | 2024-03-16 20:34:20 -0700 |
commit | cbf0204fbe691dbf39bdb72e5bcdd361ee53a5fe (patch) | |
tree | 9b152afcce5d039361a2c3d848fb911a83cfb456 | |
parent | f57c75e3ab5ac8c1dcd8fa9a137462c508d5c1e9 (diff) | |
download | aur-cbf0204fbe691dbf39bdb72e5bcdd361ee53a5fe.tar.gz |
update pkgver and add pkgver() function
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 9 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = vinegar-git pkgdesc = Fast and robust bootstrapper for Roblox that has many ease-of-use features. - pkgver = 1.7.4.r1.g837cda9 + pkgver = v1.7.4.r21.gbe39c40 pkgrel = 1 url = https://github.com/vinegarhq/vinegar arch = x86_64 @@ -21,7 +21,7 @@ pkgbase = vinegar-git optdepends = gamemode: Gamemode integration optdepends = vulkan-driver: Vulkan support in GUI optdepends = wine: A required dependency (made optional for flexbility) - provides = vinegar-git=1.7.4.r1.g837cda9 + provides = vinegar-git=v1.7.4.r21.gbe39c40 conflicts = vinegar source = git+https://github.com/vinegarhq/vinegar sha256sums = SKIP @@ -3,8 +3,8 @@ _pkgname=vinegar pkgname=vinegar-git -pkgver=1.7.4.r1.g837cda9 pkgrel=1 +pkgver=v1.7.4.r21.gbe39c40 pkgdesc="Fast and robust bootstrapper for Roblox that has many ease-of-use features." arch=("x86_64") url="https://github.com/vinegarhq/vinegar" @@ -20,6 +20,12 @@ source=("git+${url}") sha256sums=("SKIP") provides=("${pkgname}=${pkgver}"); +pkgver() { + cd "$_pkgname" + # cutting off 'foo-' prefix that presents in the git tag + git describe --long --abbrev=7 | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + prepare() { cd "${srcdir}/${_pkgname}" |