summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorÁron Ricardo Perez-Lopez2021-05-05 00:15:36 -0400
committerÁron Ricardo Perez-Lopez2021-05-05 00:17:37 -0400
commit9c5fd887deb491b79fd6949c9045a261fe939c5c (patch)
tree9a2459c823ca6ee39d7fb7a07eee88252c73c569
parent1470c1229d6dc02224101828d9fa223e2ce61b7c (diff)
downloadaur-bluespec-contrib-git.tar.gz
Update pkgrel when bsc is updated
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 5 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4b42543b546d..621a8dc1f883 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 196056fe1fc8..577e98bf7327 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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)"