summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-05-02 16:36:24 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:45 +0700
commitd43f456532d54d78655eef9aca9cb262bbb0f7b8 (patch)
tree91ec475321e4b6bc999d0fe7dd9ca7b7823ce616
parenteeba7a722ab5479df3683ac0ab4586886ce70965 (diff)
downloadslackbuilds-d43f456532d54d78655eef9aca9cb262bbb0f7b8.tar.gz
haskell/haskell-megaparsec: 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-megaparsec/haskell-megaparsec.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-megaparsec/haskell-megaparsec.SlackBuild b/haskell/haskell-megaparsec/haskell-megaparsec.SlackBuild
index cd4073316d..fd603135e0 100644
--- a/haskell/haskell-megaparsec/haskell-megaparsec.SlackBuild
+++ b/haskell/haskell-megaparsec/haskell-megaparsec.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