summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortheguy2021-04-30 11:03:43 +0200
committertheguy2021-04-30 11:03:43 +0200
commit0630ebb3197c447769548d122b6dc6273716da13 (patch)
treed1e1d55cdd472a068d38ec1198b56ab20a676922
parentbae9d35d22569d8c3b8d1c5f2f134c56ff29cce0 (diff)
downloadaur-0630ebb3197c447769548d122b6dc6273716da13.tar.gz
pkgver() now vcs guideline compliant
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 3 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d469be21845..48938436f05 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = feroxbuster-git
pkgdesc = A fast, simple, recursive content discovery tool written in Rust.
- pkgver = 1.0.5
+ pkgver = 0.0.0
pkgrel = 1
url = https://github.com/epi052/feroxbuster
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 12d669fdd5d..0ede233bfc9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: spikecodes <19519553+spikecodes@users.noreply.github.com>
pkgname=feroxbuster-git
_pkgname=${pkgname%-git}
-pkgver=1.0.5
+pkgver=0.0.0
pkgrel=1
pkgdesc="A fast, simple, recursive content discovery tool written in Rust. "
arch=('any')
@@ -15,9 +15,7 @@ sha256sums=("SKIP")
pkgver() {
cd "${_pkgname}"
- ( set -o pipefail
- printf "$(git describe --tags | awk -F- '{print $1}' | cut -c2-)"
- )
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {