[arch-commits] Commit in dtools/trunk (PKGBUILD)
Dan Printzell
wild at archlinux.org
Mon Aug 13 16:15:42 UTC 2018
Date: Monday, August 13, 2018 @ 16:15:42
Author: wild
Revision: 371306
upgpkg: dtools 2.081.2-1
Updated to 2.081.2
Modified:
dtools/trunk/PKGBUILD
----------+
PKGBUILD | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-13 16:10:12 UTC (rev 371305)
+++ PKGBUILD 2018-08-13 16:15:42 UTC (rev 371306)
@@ -3,7 +3,7 @@
# Contributor: Mihails Strasunse <public at dicebot.lv>
pkgname='dtools'
-pkgver=2.081.0
+pkgver=2.081.2
pkgrel=1
pkgdesc="Ancilliary tools for the D programming language"
license=('Boost')
@@ -15,19 +15,23 @@
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/dlang/tools/archive/v${pkgver}.tar.gz
"http://www.boost.org/LICENSE_1_0.txt"
"autodetect.diff")
-sha512sums=('d26657cd2050c6f1cc9d6c338179ac8e89cfc257243e5b7ad657be514b6417fd39976f319949dd59b768e151db7ceb52b9926cb98ae2672aa6af8c5795b5f968'
+sha512sums=('cd91fab26e503058aa172880d3b2db74879e49d80a89c4f43f5620f454fde52e48ad4dcd6433a70c6cf180d094d6819bc790d80b849f030e0d080b7a2015bf67'
'd6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8'
'3bce3c66cf24837fcb9bf244f2b07ed6116d8d67a75b2319010cf93956e93b43262b7d9613359503e6b0352b82684be8baeeb7b1f50e77accda334ce470bf5e3')
build() {
DMD=dmd
+
+ # Add $LDFLAGS and $CXXFLAGS to the compilation
+ _linkflags=$(echo -ne $LDFLAGS | cut -d\" -f2 | tail -c+4 | sed "s/,/ -L=/g")
+
cd tools-${pkgver}
# rdmd is used to build others
- $DMD -od. -ofdtools-rdmd rdmd.d
+ $DMD -od. -ofdtools-rdmd $_linkflags rdmd.d
for tool in DustMite/dustmite ddemangle catdoc detab tolf dget; do
- ./dtools-rdmd --compiler=$DMD --build-only -od. -ofdtools-`basename $tool` $tool.d
+ ./dtools-rdmd --compiler=$DMD --build-only -od. -ofdtools-`basename $tool` $_linkflags $tool.d
done
}
More information about the arch-commits
mailing list