aboutsummaryrefslogtreecommitdiff
path: root/haskell/haskell-data-default-instances-containers
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-12-28 22:22:16 +1300
committerAndrew Clemons <andrew.clemons@gmail.com>2022-01-17 18:13:45 +1300
commit52895343dbc9067a295906047d6300cea3ee5eed (patch)
treefe1ba83fe78653c586ecea142b623cb09648101b /haskell/haskell-data-default-instances-containers
parentfd426f1b5b74ce477663145500eea788ec0c9b4a (diff)
haskell/haskell-data-default-instances-containers: Fix metadata.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'haskell/haskell-data-default-instances-containers')
-rw-r--r--haskell/haskell-data-default-instances-containers/haskell-data-default-instances-containers.SlackBuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/haskell/haskell-data-default-instances-containers/haskell-data-default-instances-containers.SlackBuild b/haskell/haskell-data-default-instances-containers/haskell-data-default-instances-containers.SlackBuild
index b955e37b1bde6..ae4ff3542c1cf 100644
--- a/haskell/haskell-data-default-instances-containers/haskell-data-default-instances-containers.SlackBuild
+++ b/haskell/haskell-data-default-instances-containers/haskell-data-default-instances-containers.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=haskell-data-default-instances-containers
VERSION=${VERSION:-0.0.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -100,7 +100,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 | sed "s/[[:space:]][[:space:]]*/ /" | cut -d" " -f2 )
+PKGID=$( grep -A 1 -E "^id:$" $SRCNAM-$VERSION.conf | sed -n '$p' | sed "s/[[:space:]][[:space:]]*/ /" | cut -d" " -f2 )
mkdir -p $PKG/$PKGCONFD
mv $SRCNAM-$VERSION.conf $PKG/$PKGCONFD/$PKGID.conf