diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = xcolor-git pkgdesc = Lightweight color picker for X11 - pkgver = 0.5.0.102.geb7a57e - pkgrel = 1 + pkgver = 0.5.0.r0.geb7a57e + pkgrel = 2 url = https://github.com/Soft/xcolor arch = x86_64 license = MIT @@ -1,8 +1,8 @@ # Maintainer: Atif Chowdhury <iftakhar.awal@gmail.com> pkgname=xcolor-git _pkgname=xcolor -pkgver=0.5.0.102.geb7a57e -pkgrel=1 +pkgver=0.5.0.r0.geb7a57e +pkgrel=2 pkgdesc="Lightweight color picker for X11" arch=(x86_64) url="https://github.com/Soft/xcolor" @@ -16,7 +16,7 @@ sha256sums=('SKIP') pkgver() { cd "${_pkgname}" - echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { |