aboutsummaryrefslogtreecommitdiff
path: root/haskell/haskell-microlens
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-05-02 16:36:16 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:41 +0700
commitd603d18c2f16bf8b8c0c7c809d90dca0a685ba72 (patch)
tree6347090fbcf4c48842c0a7623b500d315ed9579f /haskell/haskell-microlens
parent909bb3b5a29551b951bc4133a437648944c59841 (diff)
haskell/haskell-microlens: 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-microlens')
-rw-r--r--haskell/haskell-microlens/haskell-microlens.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/haskell/haskell-microlens/haskell-microlens.SlackBuild b/haskell/haskell-microlens/haskell-microlens.SlackBuild
index 5f55cb0ff610a..a385f8ced92d3 100644
--- a/haskell/haskell-microlens/haskell-microlens.SlackBuild
+++ b/haskell/haskell-microlens/haskell-microlens.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