[arch-commits] Commit in gdc/trunk (PKGBUILD)
Filipe LaĆns
ffy00 at archlinux.org
Wed Aug 29 23:17:10 UTC 2018
Date: Wednesday, August 29, 2018 @ 23:17:09
Author: ffy00
Revision: 375396
fix pkgver
Modified:
gdc/trunk/PKGBUILD
----------+
PKGBUILD | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-29 23:15:54 UTC (rev 375395)
+++ PKGBUILD 2018-08-29 23:17:09 UTC (rev 375396)
@@ -33,6 +33,12 @@
'841504e9dffe718f7e5a5fbbf03299f2b51acd783d47f99894aa5d411abcc56aedfffd4b16595e3a9446f2206f9eb29cb01e235e82c211796cd24dc23c02b578')
pkgver() {
+ if [ -f gcc/d/verstr.h ]; then
+ _d_ver="+$(cat gcc/d/verstr.h | sed 's|\"||g')"
+ elif [ -f gcc/d/VERSION ]; then
+ _d_ver="+$(cat gcc/d/VERSION | sed 's|\"||g')"
+ fi
+
echo "$(cat gdc/gcc.version | sed -e 's|gcc-||' -e 's|-.*||')$_d_ver"
}
@@ -59,12 +65,6 @@
build() {
cd "$srcdir"/gcc-build
- if [ -f gcc/d/verstr.h ]; then
- _d_ver="+$(cat gcc/d/verstr.h | sed 's|\"||g')"
- elif [ -f gcc/d/VERSION ]; then
- _d_ver="+$(cat gcc/d/VERSION | sed 's|\"||g')"
- fi
-
# using -pipe causes spurious test-suite failures
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565
export CFLAGS="${CFLAGS/-pipe/} -O2"
More information about the arch-commits
mailing list