haskell/haskell-digest: Updated for version 0.0.1.0.

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Mikko Värri 2012-01-10 16:37:22 -02:00 committed by Erik Hanson
parent 72545dc933
commit b8a44d100d
3 changed files with 19 additions and 15 deletions

View file

@ -1,6 +1,7 @@
This is a library for Haskell programs, providing efficient cryptographic hash
implementations for strict and lazy bytestrings. CRC32 and Adler32 are
supported; they are implemented as FFI bindings to efficient code from zlib.
This is a library for Haskell programs, providing efficient cryptographic
hash implementations for strict and lazy bytestrings. CRC32 and Adler32
are supported; they are implemented as FFI bindings to efficient code from
zlib.
This requires ghc.

View file

@ -3,7 +3,7 @@
# Slackware build script for digest
# Copyright 2010 Peter Wang
# Copyright 2011 Mikko Värri, Finland
# Copyright 2012 Mikko Värri, Finland
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=haskell-digest
VERSION=${VERSION:-0.0.0.9}
VERSION=${VERSION:-0.0.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -59,7 +59,7 @@ else
LIBDIRSUFFIX=""
fi
set -e # Exit on most errors
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@ -76,23 +76,26 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
runghc Setup.hs configure \
runghc Setup configure \
--prefix=/usr \
--enable-shared \
--libdir=/usr/lib$LIBDIRSUFFIX \
--libsubdir=ghc-$GHC_VERSION/$SRCNAM-$VERSION \
--docdir=/usr/doc/$PRGNAM-$VERSION
runghc Setup.hs build
runghc Setup.hs haddock
runghc Setup.hs copy --destdir=$PKG
runghc Setup.hs register --gen-pkg-config
runghc Setup build
runghc Setup haddock
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 )
mkdir -p $PKG/$PKGCONFD
mv $SRCNAM-$VERSION.conf $PKG/$PKGCONFD/$PKGID.conf
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="haskell-digest"
VERSION="0.0.0.9"
VERSION="0.0.1.0"
HOMEPAGE="http://hackage.haskell.org/package/digest"
DOWNLOAD="http://hackage.haskell.org/packages/archive/digest/0.0.0.9/digest-0.0.0.9.tar.gz"
MD5SUM="0f35175426d9e443516ac3fa2bf91311"
DOWNLOAD="http://hackage.haskell.org/packages/archive/digest/0.0.1.0/digest-0.0.1.0.tar.gz"
MD5SUM="daedf316a3af2f66307576af333cc265"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Mikko Värri"
EMAIL="vmj@linuxbox.fi"
APPROVED="dsomero"
APPROVED="dsomero,Niels Horn"