diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 5 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = kweathercore-git pkgdesc = Library to facilitate retrieval of weather information including forecasts and alerts - pkgver = v21.05.r4.gca67d2c + pkgver = 0.6.r3.g405594f pkgrel = 1 url = https://invent.kde.org/libraries/kweathercore arch = x86_64 @@ -21,4 +21,3 @@ pkgbase = kweathercore-git sha256sums = SKIP pkgname = kweathercore-git - @@ -1,7 +1,7 @@ # Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > pkgname=kweathercore-git -pkgver=v21.05.r4.gca67d2c +pkgver=0.6.r3.g405594f pkgrel=1 pkgdesc="Library to facilitate retrieval of weather information including forecasts and alerts" arch=(x86_64 i686 arm armv6h armv7h aarch64) @@ -17,8 +17,8 @@ sha256sums=('SKIP') pkgver() { cd "${pkgname%-git}" ( set -o pipefail - 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)" + git describe --long --tags --first-parent --match 'v[0-9][0-9.][0-9.]*' | \ + sed 's=^v==;s=^\([0-9][0-9.]*\)-\([a-zA-Z]\+\)=\1\2=;s=\([0-9]\+-g\)=r\1=;s=-=.=g' ) } @@ -29,4 +29,4 @@ build() { package() { DESTDIR="${pkgdir}" cmake --install build --config RelWithDebInfo -}
\ No newline at end of file +} |