aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-05-02 16:36:22 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:44 +0700
commit875b370de897caa44b8aa996487088a21f1a739c (patch)
treedd808063fec8f42701501bdd338c4864a4b190dd
parent4f7c5759691b6832ae81dccb760c1fce19773be8 (diff)
haskell/haskell-persistent-template: 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-persistent-template/haskell-persistent-template.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-persistent-template/haskell-persistent-template.SlackBuild b/haskell/haskell-persistent-template/haskell-persistent-template.SlackBuild
index e19f06d8b560..aef50af341e3 100644
--- a/haskell/haskell-persistent-template/haskell-persistent-template.SlackBuild
+++ b/haskell/haskell-persistent-template/haskell-persistent-template.SlackBuild
@@ -92,7 +92,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