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 This is a library for Haskell programs, providing efficient cryptographic
implementations for strict and lazy bytestrings. CRC32 and Adler32 are hash implementations for strict and lazy bytestrings. CRC32 and Adler32
supported; they are implemented as FFI bindings to efficient code from zlib. are supported; they are implemented as FFI bindings to efficient code from
zlib.
This requires ghc. This requires ghc.

View file

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

View file

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