summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPhilipp Claßen2017-05-11 00:51:24 +0200
committerPhilipp Claßen2017-05-11 00:51:24 +0200
commit78c2459e0dcfa9d4bc5974d33293af451e5f5a9b (patch)
tree754adcbb8a38dfb6030d66857565179c848c791a /PKGBUILD
parent0e56feb0e9b34af605759d03352e04ec328b105e (diff)
downloadaur-78c2459e0dcfa9d4bc5974d33293af451e5f5a9b.tar.gz
Fail fast if _pkgver_base needs to be updated
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 25099879d1c..34b0690254a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
pkgbase="gcc-multilib-trunk-git"
pkgname=('gcc-multilib-git' 'gcc-libs-multilib-git' 'lib32-gcc-libs-git' 'gcc-objc-multilib-git')
-pkgver=8.0.0.r153683.896d130e4dc
+pkgver=8.0.0.r153878.495cd7fe2dc
_pkgver_base=8.0.0
pkgrel=1
pkgdesc="The GNU Compiler Collection developmental snapshot"
@@ -38,6 +38,11 @@ pkgver() {
_libdir="usr/lib/gcc/$_CHOST/$_pkgver_base"
prepare() {
+ if [ $(cat ${srcdir}/gcc/gcc/BASE-VER) != $_pkgver_base ]; then
+ error "\`_pkgver_base\` needs to be updated to $(cat ${srcdir}/gcc/gcc/BASE-VER)"
+ return 1
+ fi
+
cd ${srcdir}/${_basedir}
# link isl/cloog for in-tree builds