From f076f6bf84d698244e5f5bd304eee1555c029db0 Mon Sep 17 00:00:00 2001
From: Andrew Clemons <andrew.clemons@gmail.com>
Date: Sun, 2 May 2021 16:35:50 +1200
Subject: haskell/haskell-byteable: Fix build with ghc 8.10.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
---
 haskell/haskell-byteable/haskell-byteable.SlackBuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'haskell/haskell-byteable/haskell-byteable.SlackBuild')

diff --git a/haskell/haskell-byteable/haskell-byteable.SlackBuild b/haskell/haskell-byteable/haskell-byteable.SlackBuild
index b5df40d29601a..a1e10f6d03d97 100644
--- a/haskell/haskell-byteable/haskell-byteable.SlackBuild
+++ b/haskell/haskell-byteable/haskell-byteable.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
 
-- 
cgit v1.2.3