aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-05-02 16:35:22 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:11 +0700
commitc5e98d9dfd547a0d42ac72946ae4d207d4f0f281 (patch)
tree1b6411dc35be44557ad7c978bfe2064f7d0da8b3
parent37cd5e46d0d735257771b35e95fef2c366ea688e (diff)
haskell/haskell-cmdargs: Fix build with ghc 8.10.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--haskell/haskell-cmdargs/haskell-cmdargs.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-cmdargs/haskell-cmdargs.SlackBuild b/haskell/haskell-cmdargs/haskell-cmdargs.SlackBuild
index e580f6a5db59..05273c5db560 100644
--- a/haskell/haskell-cmdargs/haskell-cmdargs.SlackBuild
+++ b/haskell/haskell-cmdargs/haskell-cmdargs.SlackBuild
@@ -89,7 +89,7 @@ runghc Setup copy --destdir=$PKG
runghc Setup register --gen-pkg-config
PKGCONFD=/usr/lib${LIBDIRSUFFIX}/ghc-${GHC_VERSION}/package.conf.d
-PKGID=$( grep -E "^id: " $SRCNAM-$VERSION.conf | cut -d" " -f2 )
+PKGID=$( grep -E "^id: " $SRCNAM-$VERSION.conf | sed "s/[[:space:]][[:space:]]*/ /" | cut -d" " -f2 )
mkdir -p $PKG/$PKGCONFD
mv $SRCNAM-$VERSION.conf $PKG/$PKGCONFD/$PKGID.conf