summaryrefslogtreecommitdiff
path: root/fpc-src-svn
diff options
context:
space:
mode:
Diffstat (limited to 'fpc-src-svn')
-rw-r--r--fpc-src-svn/PKGBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/fpc-src-svn/PKGBUILD b/fpc-src-svn/PKGBUILD
index 333602698..30eb6f2f0 100644
--- a/fpc-src-svn/PKGBUILD
+++ b/fpc-src-svn/PKGBUILD
@@ -9,7 +9,7 @@
# See http://bbs.archlinux.org/viewtopic.php?t=9318&highlight=fpc
pkgname='fpc-src-svn'
-pkgver=3.3.1.r10652
+pkgver=3.3.1.r10652.6f749cf4
_pkgver="${pkgver%.r*}"
_commit="${pkgver##*.}"
pkgrel=1
@@ -36,12 +36,17 @@ pkgver() {
| sort -V \
| tail -n1
)
+ _commit=$(
+ git rev-parse "${_commit}" \
+ | cut -c1-8
+ )
revision=$(
- git rev-list --count "${_commit/HEAD/main}" "^${last_version}"
+ git rev-list --count "${_commit}" "^${last_version}"
)
- printf '%s.r%s' \
- ${last_version} \
- ${revision}
+ printf '%s.r%s.%s' \
+ "${last_version}" \
+ "${revision}" \
+ "${_commit}"
}
prepare() {