summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2017-09-17 23:26:10 +0200
committerhaawda2017-09-17 23:26:10 +0200
commit7d95d7bb13923e9b530f92dad0a2ba9f9454e9c2 (patch)
tree6b040b87b6176ed28aa2dd2591b20d71ec6bf01c
parent1dc73eb923ada9de4490c7eb1557a399558c51be (diff)
downloadaur-7d95d7bb13923e9b530f92dad0a2ba9f9454e9c2.tar.gz
better pkgver version
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 7 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 391ad599d1fc..69548170ca00 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = focuswriter-git
pkgdesc = A simple fullscreen word processor
- pkgver = 1.6.0.r67.g49b33b6
+ pkgver = 1.6.7.1072.49b33b6
pkgrel = 1
url = http://gottcode.org/focuswriter/
arch = i686
@@ -14,7 +14,7 @@ pkgbase = focuswriter-git
optdepends = sdl_mixer: typewriter sound effects
provides = focuswriter
conflicts = focuswriter
- source = git://github.com/gottcode/focuswriter.git
+ source = git+https://github.com/gottcode/focuswriter.git
sha1sums = SKIP
pkgname = focuswriter-git
diff --git a/PKGBUILD b/PKGBUILD
index 0e338f92690f..fa75e8185a4a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
_pkgname=focuswriter
pkgname=focuswriter-git
-pkgver=1.6.0.r67.g49b33b6
+pkgver=1.6.7.1072.49b33b6
pkgrel=1
pkgdesc="A simple fullscreen word processor"
arch=('i686' 'x86_64')
@@ -18,12 +18,14 @@ optdepends=('sdl_mixer: typewriter sound effects')
makedepends=('git')
provides=('focuswriter')
conflicts=('focuswriter')
-source=("git://github.com/gottcode/focuswriter.git")
+source=("git+https://github.com/gottcode/focuswriter.git")
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
- git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+ printf %s.%s.%s $(head -1 "${srcdir}/${_pkgname}/NEWS") \
+ $(git rev-list --count HEAD) \
+ $(git rev-parse --short HEAD)
}
build() {