diff options
author | Áron Ricardo Perez-Lopez | 2021-05-05 00:15:36 -0400 |
---|---|---|
committer | Áron Ricardo Perez-Lopez | 2021-05-05 00:17:37 -0400 |
commit | 9c5fd887deb491b79fd6949c9045a261fe939c5c (patch) | |
tree | 9a2459c823ca6ee39d7fb7a07eee88252c73c569 | |
parent | 1470c1229d6dc02224101828d9fa223e2ce61b7c (diff) | |
download | aur-bluespec-contrib-git.tar.gz |
Update pkgrel when bsc is updated
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = bluespec-contrib-git pkgdesc = Bluespec Compiler (BSC) - Contributed libraries and utilities pkgver = r3.ced0e9f - pkgrel = 1 + pkgrel = 202 url = https://github.com/B-Lang-org/bsc-contrib arch = any license = BSD @@ -1,7 +1,7 @@ # Maintainer: Áron Ricardo Perez-Lopez <perez.aron@gmail.com> pkgname=bluespec-contrib-git pkgver=r3.ced0e9f -pkgrel=1 +pkgrel=2 pkgdesc='Bluespec Compiler (BSC) - Contributed libraries and utilities' arch=('any') url='https://github.com/B-Lang-org/bsc-contrib' @@ -11,6 +11,9 @@ makedepends=('git') source=('git+https://github.com/B-Lang-org/bsc-contrib.git') md5sums=('SKIP') +# Needs to be updated whenever bsc is updated. +eval pkgrel=$(pacman -Q bluespec-git | cut -d" " -f2 | cut -d"-" -f2) + pkgver() { cd "$srcdir/bsc-contrib" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" |