aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-05-02 16:35:31 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:16 +0700
commitc3ad9a36a2fe9357dcde8b6da933afd5b4869606 (patch)
tree766cc477b678f7c7d59cc7b118e280e2447a9910
parent9b9a56d2e9c2bbd4990f671524adef813dc523eb (diff)
haskell/haskell-resourcet: 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-resourcet/haskell-resourcet.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-resourcet/haskell-resourcet.SlackBuild b/haskell/haskell-resourcet/haskell-resourcet.SlackBuild
index 89c05ec9d80b1..0a231236f64a6 100644
--- a/haskell/haskell-resourcet/haskell-resourcet.SlackBuild
+++ b/haskell/haskell-resourcet/haskell-resourcet.SlackBuild
@@ -90,7 +90,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