summaryrefslogtreecommitdiffstats
path: root/haskell
diff options
context:
space:
mode:
author Andrew Clemons2021-05-02 06:36:25 +0200
committer Willy Sudiarto Raharjo2021-05-02 12:21:46 +0200
commitd3a2be55514ceff28f2fcb973ea5d5f554279026 (patch)
tree5138a0be5253c3656d6661f1122e6fc7d009c4d5 /haskell
parent27820e128adc43b6b108231919d161048ad14eb2 (diff)
downloadslackbuilds-d3a2be55514ceff28f2fcb973ea5d5f554279026.tar.gz
haskell/haskell-cgi: Fix build with ghc 8.10.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'haskell')
-rw-r--r--haskell/haskell-cgi/haskell-cgi.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-cgi/haskell-cgi.SlackBuild b/haskell/haskell-cgi/haskell-cgi.SlackBuild
index 83102b778e..4e9aa8919d 100644
--- a/haskell/haskell-cgi/haskell-cgi.SlackBuild
+++ b/haskell/haskell-cgi/haskell-cgi.SlackBuild
@@ -94,7 +94,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