diff options
Diffstat (limited to 'haskell/haskell-pandoc-types')
-rw-r--r-- | haskell/haskell-pandoc-types/README | 4 | ||||
-rw-r--r-- | haskell/haskell-pandoc-types/haskell-pandoc-types.SlackBuild | 20 | ||||
-rw-r--r-- | haskell/haskell-pandoc-types/haskell-pandoc-types.info | 8 |
3 files changed, 21 insertions, 11 deletions
diff --git a/haskell/haskell-pandoc-types/README b/haskell/haskell-pandoc-types/README index b5adbe3708..ebe3c8e158 100644 --- a/haskell/haskell-pandoc-types/README +++ b/haskell/haskell-pandoc-types/README @@ -1,5 +1,5 @@ -This package contains definitions for the Pandoc data structure, which is -used by pandoc to represent structured documents. +This package contains definitions for the Pandoc data structure, which +is used by pandoc to represent structured documents. After uninstalling, run this command to unregister the package from the ghc package database: ghc-pkg recache diff --git a/haskell/haskell-pandoc-types/haskell-pandoc-types.SlackBuild b/haskell/haskell-pandoc-types/haskell-pandoc-types.SlackBuild index 43e612d52f..d0ad0f27d1 100644 --- a/haskell/haskell-pandoc-types/haskell-pandoc-types.SlackBuild +++ b/haskell/haskell-pandoc-types/haskell-pandoc-types.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for haskell-pandoc-types @@ -24,10 +24,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-pandoc-types -VERSION=${VERSION:-1.17.5.3} +VERSION=${VERSION:-1.22.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM="$( echo $PRGNAM | cut -d- -f2- )" @@ -41,7 +44,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} @@ -91,7 +101,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 @@ -107,4 +117,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-pandoc-types/haskell-pandoc-types.info b/haskell/haskell-pandoc-types/haskell-pandoc-types.info index edc56a85ab..2a524a8162 100644 --- a/haskell/haskell-pandoc-types/haskell-pandoc-types.info +++ b/haskell/haskell-pandoc-types/haskell-pandoc-types.info @@ -1,10 +1,10 @@ PRGNAM="haskell-pandoc-types" -VERSION="1.17.5.3" +VERSION="1.22.1" HOMEPAGE="https://hackage.haskell.org/package/pandoc-types" -DOWNLOAD="https://hackage.haskell.org/package/pandoc-types-1.17.5.3/pandoc-types-1.17.5.3.tar.gz" -MD5SUM="8b100d5e3b58abc28946cc821fb120cf" +DOWNLOAD="https://hackage.haskell.org/package/pandoc-types-1.22.1/pandoc-types-1.22.1.tar.gz" +MD5SUM="ab16ff6b75e23ead2e45e57836a57e08" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="haskell-QuickCheck haskell-syb haskell-aeson haskell-deepseq-generics" +REQUIRES="haskell-QuickCheck haskell-aeson haskell-deepseq-generics" MAINTAINER="David Spencer" EMAIL="baildon.research@googlemail.com" |