summaryrefslogtreecommitdiff
path: root/fpc-docs-svn/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-04-30 21:38:10 +0200
committerErich Eckner <git@eckner.net>2021-04-30 21:38:10 +0200
commit5425abbbdf7365c9261fc706922f1bb212736201 (patch)
tree2ad6296365db4361459c41d5c09cb6c6b4211741 /fpc-docs-svn/PKGBUILD
parent4d7d593a33c6065a7abab16ca3f03f40447c1580 (diff)
downloadarchlinuxewe-5425abbbdf7365c9261fc706922f1bb212736201.tar.xz
fpc-svn,fpc-docs-svn: fix pkgver() for checkVersions
Diffstat (limited to 'fpc-docs-svn/PKGBUILD')
-rw-r--r--fpc-docs-svn/PKGBUILD10
1 files changed, 9 insertions, 1 deletions
diff --git a/fpc-docs-svn/PKGBUILD b/fpc-docs-svn/PKGBUILD
index c63fb28e5..57c7b00b5 100644
--- a/fpc-docs-svn/PKGBUILD
+++ b/fpc-docs-svn/PKGBUILD
@@ -26,7 +26,15 @@ sha512sums=('SKIP')
pkgver() {
cd "${srcdir}"/fpcdocs
- _src_ver=$(pacman -Q fpc-src-svn)
+ _src_ver=$(pacman -Q fpc-src-svn 2>/dev/null) \
+ || _src_ver=$(
+ pacman -Ss fpc-src-svn \
+ | sed '
+ s@^\S\+/\(fpc-src-svn\s\+\)@\1@
+ t
+ d
+ '
+ )
_src_ver="${_src_ver##* }"
_src_ver="${_src_ver%.r*}"
printf '%s.r%s' \