summaryrefslogtreecommitdiffstats
path: root/haskell
diff options
context:
space:
mode:
author Andrew Clemons2021-05-02 06:36:06 +0200
committer Willy Sudiarto Raharjo2021-05-02 12:21:35 +0200
commit5b47937ea6ab60d037af214c9c7b0ffc8340bafc (patch)
tree65f75f652e0d0ad11e0ec0416446382126d63777 /haskell
parent5d2301c191df6e350a59c12970f81f6432033924 (diff)
downloadslackbuilds-5b47937ea6ab60d037af214c9c7b0ffc8340bafc.tar.gz
haskell/haskell-hostname: 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-hostname/haskell-hostname.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-hostname/haskell-hostname.SlackBuild b/haskell/haskell-hostname/haskell-hostname.SlackBuild
index 3cfa444834..be9d5571bc 100644
--- a/haskell/haskell-hostname/haskell-hostname.SlackBuild
+++ b/haskell/haskell-hostname/haskell-hostname.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