summaryrefslogtreecommitdiff
path: root/haskell/haskell-gitrev/haskell-gitrev.SlackBuild
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:32 +0700
commit10cb2e98bea18633039b65969a69d2bf622c3f41 (patch)
tree3b22dbde1ead6eaa09fd24c09ffaf795bbbedbcb /haskell/haskell-gitrev/haskell-gitrev.SlackBuild
parentbc147bd40743e756063e2442c39b6f1777b3003a (diff)
downloadslackbuilds-10cb2e98bea18633039b65969a69d2bf622c3f41.tar.gz
haskell/haskell-gitrev: 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-gitrev/haskell-gitrev.SlackBuild')
-rw-r--r--haskell/haskell-gitrev/haskell-gitrev.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-gitrev/haskell-gitrev.SlackBuild b/haskell/haskell-gitrev/haskell-gitrev.SlackBuild
index 20a4ea29e9..16379ce5ab 100644
--- a/haskell/haskell-gitrev/haskell-gitrev.SlackBuild
+++ b/haskell/haskell-gitrev/haskell-gitrev.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