diff options
author | CubeTheThird | 2020-01-21 22:22:15 -0500 |
---|---|---|
committer | CubeTheThird | 2020-01-21 22:22:15 -0500 |
commit | 4df2648ae8797fcec5b96d69cfdafc51a96227d9 (patch) | |
tree | 391961aa4387ad5afb2cb21f106974510d497b1c | |
parent | d5a83976622c02178a5a92eabb5a59653d6c5efc (diff) | |
download | aur-4df2648ae8797fcec5b96d69cfdafc51a96227d9.tar.gz |
Updated pkgver function to use tags. Discarding .desktop generation output messages.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 4 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = brogue-ce-git pkgdesc = Brogue Community Edition: A 26-level dungeon crawl to the Amulet of Yendor. - pkgver = 1.8.r153.c344d3c + pkgver = v1.8.r13.gac3d50b pkgrel = 1 url = https://github.com/tmewett/BrogueCE arch = i686 @@ -1,8 +1,7 @@ #Maintainer: CubeTheThird <cubethethird@gmail.com> pkgname=brogue-ce-git -pkgver=1.8.r153.c344d3c -_pkgverbase=1.8 +pkgver=v1.8.r13.gac3d50b pkgrel=1 pkgdesc="Brogue Community Edition: A 26-level dungeon crawl to the Amulet of Yendor." arch=('i686' 'x86_64') @@ -17,7 +16,7 @@ md5sums=('SKIP' pkgver() { cd "$srcdir/$pkgname" -printf "${_pkgverbase}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { @@ -26,7 +25,7 @@ build() { make clean make - ./make-link-for-desktop.sh + ./make-link-for-desktop.sh > /dev/null sed -i -e "s|$(pwd)|/opt/${pkgname}|" -e 's/brogue$/brogue.sh/' -e 's/bin\///' "brogue.desktop" } |