aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-05-02 16:35:56 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:29 +0700
commitb17a6bc92bd73d532ea74d10791205abf5b6b070 (patch)
tree63edd366e703cc189221db4ca3f0381569bc603d
parente69dcaf59add13702893b225f003287e62cb8607 (diff)
haskell/haskell-stack: 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-stack/haskell-stack.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-stack/haskell-stack.SlackBuild b/haskell/haskell-stack/haskell-stack.SlackBuild
index 3fda446fcb61c..5c9d5c8d36657 100644
--- a/haskell/haskell-stack/haskell-stack.SlackBuild
+++ b/haskell/haskell-stack/haskell-stack.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