summaryrefslogtreecommitdiff
path: root/haskell/haskell-hpack
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-05-02 16:36:02 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:33 +0700
commit8a22b2485344a16e18bf5ebed67308d57e2d053c (patch)
tree2a6302d9cf52bebfa9ab139039674d5409d9935b /haskell/haskell-hpack
parentd4d77f5987391d2cbc80e9ec3b196fc900d8d274 (diff)
downloadslackbuilds-8a22b2485344a16e18bf5ebed67308d57e2d053c.tar.gz
haskell/haskell-hpack: 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/haskell-hpack')
-rw-r--r--haskell/haskell-hpack/haskell-hpack.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-hpack/haskell-hpack.SlackBuild b/haskell/haskell-hpack/haskell-hpack.SlackBuild
index fe0a475f57..b38ce14825 100644
--- a/haskell/haskell-hpack/haskell-hpack.SlackBuild
+++ b/haskell/haskell-hpack/haskell-hpack.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