summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgesh2023-06-16 15:26:59 +0300
committergesh2023-06-16 15:26:59 +0300
commit6444a9d4aa973a36936aa9ba81f8b90f2d759745 (patch)
treeaf115948415d2fabe7377c02b5c38deb3ac40d0d
parent4ecf989895c4545f85340ca2735459ae4100c40b (diff)
downloadaur-6444a9d4aa973a36936aa9ba81f8b90f2d759745.tar.gz
Ignore tags that don't look like versions
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD5
2 files changed, 5 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5fac3b2680d9..275a14fab37a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
pkgbase = pandoc-static-git
pkgdesc = Conversion between markup formats (static build, dynamic Lua support)
- pkgver = 2.18.r1.g4c8ad1fba
+ pkgver = 3.1.3.r7.gb1a78b0dd
pkgrel = 1
url = https://pandoc.org
arch = x86_64
license = GPL
makedepends = stack>=1.7.0
optdepends = texlive-core: for pdf output
- provides = pandoc=2.18
+ provides = pandoc=3.1.3
conflicts = haskell-pandoc
conflicts = pandoc
conflicts = pandoc-bin
diff --git a/PKGBUILD b/PKGBUILD
index 66cd5fe4559d..5b6444b29e64 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ shopt -s extglob
pkgname=pandoc-static-git
_pkgname="${pkgname%-static-git}"
-pkgver=2.18.r1.g4c8ad1fba
+pkgver=3.1.3.r7.gb1a78b0dd
pkgrel=1
pkgdesc='Conversion between markup formats (static build, dynamic Lua support)'
url='https://pandoc.org'
@@ -27,7 +27,8 @@ pkgver() {
eval "$(git for-each-ref --shell --sort=creatordate \
--format 'git tag --force %(refname:lstrip=-1)rc %(refname)' \
'refs/**/rc/*' | tail -n1)"
- git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+ git describe --tags --long --match '[0-9]*' --match 'v[0-9]*' \
+ | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
# prepare() {