diff options
author | Gordian Edenhofer | 2020-06-04 10:03:59 +0200 |
---|---|---|
committer | Gordian Edenhofer | 2020-06-04 10:06:43 +0200 |
commit | 11c27122d88a2c2ecf727152111432025abc704b (patch) | |
tree | bc125842f5de8cf2f44d9367d7458162e0389de0 | |
parent | 37b03bd0802de5d16bf023b89577a75358823616 (diff) | |
download | aur-luv-icon-theme-git.tar.gz |
upgpkg: luv-icon-theme-git r836.f236f33-1
Fix the `pkgver` function to produce a proper version string even in
repositories with no tags, i.e. fresh clones.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = luv-icon-theme-git pkgdesc = The spiritual successor to Flattr, a flat but complex icon theme for freedesktop environments. - pkgver = r834.38c20d3 + pkgver = r836.f236f33 pkgrel = 1 epoch = 1 url = https://github.com/Nitrux/luv-icon-theme @@ -8,8 +8,8 @@ pkgbase = luv-icon-theme-git license = custom:CC BY-SA 4.0 makedepends = git depends = librsvg - provides = flattr-icon-theme=r834.38c20d3 - provides = luv-icon-theme=r834.38c20d3 + provides = flattr-icon-theme=r836.f236f33 + provides = luv-icon-theme=r836.f236f33 conflicts = flattr-icon-theme conflicts = luv-icon-theme source = luv-icon-theme-git::git+https://github.com/Nitrux/luv-icon-theme.git @@ -3,7 +3,7 @@ pkgname=luv-icon-theme-git epoch=1 -pkgver=r834.38c20d3 +pkgver=r836.f236f33 pkgrel=1 pkgdesc="The spiritual successor to Flattr, a flat but complex icon theme for freedesktop environments." arch=('any') @@ -20,7 +20,7 @@ pkgver() { cd "${srcdir}/${pkgname}" ( set -o pipefail - git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \ + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \ || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } |