development/alex: Updated for version 3.2.4.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2018-10-27 12:25:51 +01:00 committed by Willy Sudiarto Raharjo
parent 5e7b647a8e
commit 48edd42ff1
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 18 additions and 18 deletions

View file

@ -3,6 +3,7 @@
# Slackware build script for alex
# Copyright 2014 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
@ -23,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=alex
VERSION=${VERSION:-3.1.7}
VERSION=${VERSION:-3.2.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -40,8 +41,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"
@ -63,11 +64,10 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@ -85,7 +85,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
CHANGELOG.md LICENSE README TODO \
CHANGELOG.md LICENSE README.md TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="alex"
VERSION="3.1.7"
HOMEPAGE="http://haskell.org/alex/"
DOWNLOAD="http://hackage.haskell.org/package/alex-3.1.7/alex-3.1.7.tar.gz"
MD5SUM="cc020557895fa357f0edd5b93b3f7bd7"
VERSION="3.2.4"
HOMEPAGE="https://haskell.org/alex/"
DOWNLOAD="https://hackage.haskell.org/package/alex-3.2.4/alex-3.2.4.tar.gz"
MD5SUM="d2396dedcbe61ddf2912fce5a092c0ed"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="ghc haskell-QuickCheck"
MAINTAINER="Mikko Värri"
EMAIL="vmj@linuxbox.fi"
REQUIRES="haskell-QuickCheck"
MAINTAINER="David Spencer"
EMAIL="baildon.research@googlemail.com"

View file

@ -14,6 +14,6 @@ alex: expressions. It is similar to the tool lex or flex for C/C++.
alex:
alex: This package is part of Haskell Platform.
alex:
alex: Homepage: http://haskell.org/alex/
alex: Homepage: https://haskell.org/alex/
alex:
alex: