summaryrefslogtreecommitdiffstats
path: root/haskell/haskell-blaze-html
diff options
context:
space:
mode:
Diffstat (limited to 'haskell/haskell-blaze-html')
-rw-r--r--haskell/haskell-blaze-html/haskell-blaze-html.SlackBuild20
-rw-r--r--haskell/haskell-blaze-html/haskell-blaze-html.info6
2 files changed, 18 insertions, 8 deletions
diff --git a/haskell/haskell-blaze-html/haskell-blaze-html.SlackBuild b/haskell/haskell-blaze-html/haskell-blaze-html.SlackBuild
index 59171a178e..a62f41475d 100644
--- a/haskell/haskell-blaze-html/haskell-blaze-html.SlackBuild
+++ b/haskell/haskell-blaze-html/haskell-blaze-html.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for haskell-blaze-html
@@ -23,10 +23,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=haskell-blaze-html
-VERSION=${VERSION:-0.9.1.1}
+VERSION=${VERSION:-0.9.1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$( echo $PRGNAM | cut -d- -f2- )"
@@ -40,7 +43,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -90,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 | 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
@@ -106,4 +116,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/haskell/haskell-blaze-html/haskell-blaze-html.info b/haskell/haskell-blaze-html/haskell-blaze-html.info
index be64a9f149..6259cd2937 100644
--- a/haskell/haskell-blaze-html/haskell-blaze-html.info
+++ b/haskell/haskell-blaze-html/haskell-blaze-html.info
@@ -1,8 +1,8 @@
PRGNAM="haskell-blaze-html"
-VERSION="0.9.1.1"
+VERSION="0.9.1.2"
HOMEPAGE="https://hackage.haskell.org/package/blaze-html"
-DOWNLOAD="https://hackage.haskell.org/packages/archive/blaze-html/0.9.1.1/blaze-html-0.9.1.1.tar.gz"
-MD5SUM="8fc618796e9c9e624fc6338f247232f6"
+DOWNLOAD="https://hackage.haskell.org/packages/archive/blaze-html/0.9.1.2/blaze-html-0.9.1.2.tar.gz"
+MD5SUM="a1b7997875d18d26b13de20aa032e2ec"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="haskell-blaze-markup"