summaryrefslogtreecommitdiff
path: root/fpc-docs-svn
diff options
context:
space:
mode:
Diffstat (limited to 'fpc-docs-svn')
-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' \