summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgenstern2020-09-15 20:22:27 +1200
committerMorgenstern2020-09-15 20:22:27 +1200
commitce33d3298342ca1eee99d10c9ce61e4179770735 (patch)
tree5b84140e771add9dc7cac1dc30a08fcf926f9750
parentc1bbe39f5789bbc826c8534422658a4886c4e441 (diff)
downloadaur-ce33d3298342ca1eee99d10c9ce61e4179770735.tar.gz
Fixed pkgver function
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4e91f840374..bbe6bbfebbe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cherrytree-git
pkgdesc = Hierarchical note-taking application, git version
- pkgver = 0.99.9.r145.gdfed1e53
+ pkgver = 0.99.11.r169.g63ae50a1
pkgrel = 1
url = https://github.com/giuspen/cherrytree
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 71667b353a7..a1a85e8ca8e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=cherrytree-git
_pkgname=$(echo -e "${pkgname/-git/}")
-pkgver=0.99.9.r145.gdfed1e53
+pkgver=0.99.11.r169.g63ae50a1
pkgrel=1
pkgdesc="Hierarchical note-taking application, git version"
arch=('x86_64')
@@ -22,8 +22,8 @@ sha256sums=('SKIP')
pkgver() {
local _pkgver
cd "${_pkgname}"
- _pkgver=$(grep 'CT_VERSION "' CMakeLists.txt | \
- sed 's/.*"\(.*\)"[^"]*$/\1/')
+ _pkgver=$(grep cherrytree debian/changelog | sed 's/.*(\(.*\)).*$/\1/g' | \
+ sed 's/\-.*$//g')
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | \
sed "s/.*r/$_pkgver\.r/"
}