diff options
author | haawda | 2017-09-17 23:26:10 +0200 |
---|---|---|
committer | haawda | 2017-09-17 23:26:10 +0200 |
commit | 7d95d7bb13923e9b530f92dad0a2ba9f9454e9c2 (patch) | |
tree | 6b040b87b6176ed28aa2dd2591b20d71ec6bf01c | |
parent | 1dc73eb923ada9de4490c7eb1557a399558c51be (diff) | |
download | aur-7d95d7bb13923e9b530f92dad0a2ba9f9454e9c2.tar.gz |
better pkgver version
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 7 insertions, 5 deletions
@@ -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 @@ -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() { |