summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-05-02 16:35:27 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:13 +0700
commit3a114b12f995e88d938ce52eede2c0c106d34813 (patch)
tree439070a58c247bb999647e7c5d28e6e61a492b4e
parenteaa4290810ed39a3ae680da4dd3be6139e3d004b (diff)
downloadslackbuilds-3a114b12f995e88d938ce52eede2c0c106d34813.tar.gz
haskell/haskell-tar: 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-tar/haskell-tar.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-tar/haskell-tar.SlackBuild b/haskell/haskell-tar/haskell-tar.SlackBuild
index 1b6e0a91ef..e2349a15e5 100644
--- a/haskell/haskell-tar/haskell-tar.SlackBuild
+++ b/haskell/haskell-tar/haskell-tar.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