haskell/haskell-hashable: Updated for version 1.2.7.0.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2018-10-26 10:58:13 +01:00 committed by Willy Sudiarto Raharjo
parent efdbe7ab5e
commit a36f4cd9a5
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 17 additions and 16 deletions

View file

@ -4,6 +4,7 @@
# Copyright 2014 Google Inc, Germany
# Copyright 2015 Mikko Värri, Finland
# Updated 2018 David Spencer, Baildon, West Yorkshire, U.K.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=haskell-hashable
VERSION=${VERSION:-1.2.4.0}
VERSION=${VERSION:-1.2.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -34,7 +35,7 @@ GHC_VERSION=$(ghc --numeric-version)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -45,8 +46,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -78,10 +79,10 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
runghc Setup configure \
--prefix=/usr \
--enable-shared \
--enable-library-profiling \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--libsubdir=ghc-${GHC_VERSION}/$SRCNAM-$VERSION \
--enable-shared \
--enable-library-profiling \
--docdir=/usr/doc/$PRGNAM-$VERSION
runghc Setup build
@ -102,8 +103,8 @@ cp -a CHANGES.md LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}

View file

@ -1,10 +1,10 @@
PRGNAM="haskell-hashable"
VERSION="1.2.4.0"
HOMEPAGE="http://hackage.haskell.org/package/hashable"
DOWNLOAD="http://hackage.haskell.org/package/hashable-1.2.4.0/hashable-1.2.4.0.tar.gz"
MD5SUM="55c2b3ce96fb4861e1f6e6b50a8182cc"
VERSION="1.2.7.0"
HOMEPAGE="https://hackage.haskell.org/package/hashable"
DOWNLOAD="https://hackage.haskell.org/package/hashable-1.2.7.0/hashable-1.2.7.0.tar.gz"
MD5SUM="dea6feafb84f3c035b6053a21bd25147"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="haskell-text"
MAINTAINER="Mikko Värri"
EMAIL="vmj@linuxbox.fi"
REQUIRES="ghc"
MAINTAINER="David Spencer"
EMAIL="baildon.research@googlemail.com"

View file

@ -15,5 +15,5 @@ haskell-hashable: converted to a hash value. This class exists for the benefit o
haskell-hashable: hashing-based data structures. The package provides instances for
haskell-hashable: basic types and a way to combine hash values.
haskell-hashable:
haskell-hashable: http://hackage.haskell.org/package/hashable
haskell-hashable: https://hackage.haskell.org/package/hashable
haskell-hashable: