diff options
author | saloniamatteo | 2021-03-05 16:34:39 +0100 |
---|---|---|
committer | saloniamatteo | 2021-03-05 16:34:39 +0100 |
commit | c11ff84b3db3587950b6dbe1d468da01117ae1f9 (patch) | |
tree | 996ea44bf711584ea816137bf4424886b054dcc6 | |
parent | 05dbb25092900face1c83a1fd4934215583b4e7f (diff) | |
download | aur-c11ff84b3db3587950b6dbe1d468da01117ae1f9.tar.gz |
Use pkgver()
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = saluto-lightdm-theme-dwm pkgdesc = Saluto: Litarvan LightDM Theme Fork, with added support for DWM pkgver = 3.0.0 - pkgrel = 2 + pkgrel = 1 url = https://github.com/Demonstrandum/Saluto arch = any license = MIT @@ -1,8 +1,9 @@ # Maintainer: Matteo Salonia <saloniamatteo@protonmail.com> pkgname=saluto-lightdm-theme-dwm +_pkgname=Saluto pkgver=3.0.0 -pkgrel=2 +pkgrel=1 pkgdesc="Saluto: Litarvan LightDM Theme Fork, with added support for DWM" arch=('any') url="https://github.com/Demonstrandum/Saluto" @@ -19,6 +20,12 @@ md5sums=( '8f007861efc61ced5abf9ee74030afb9' # dwm.png ) +pkgver() { + cd "${_pkgname}" + _pkgver=$(awk '/VERSION/ {print $3}' config.mk|head -1) + echo "${_pkgver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + source=( "git+https://github.com/Demonstrandum/Saluto" "dwm.desktop" |