diff options
Diffstat (limited to 'system/blake2/blake2.SlackBuild')
-rw-r--r-- | system/blake2/blake2.SlackBuild | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/system/blake2/blake2.SlackBuild b/system/blake2/blake2.SlackBuild index 0e4012413fdc..ee33615ac348 100644 --- a/system/blake2/blake2.SlackBuild +++ b/system/blake2/blake2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for blake2 -# Copyright 2012-2013 Willy Sudiarto Raharjo <willysr@slackware-id.org> +# Copyright 2012-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,14 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=blake2 -VERSION=${VERSION:-20140114} -SRCNAM=$(printf $PRGNAM-code-$VERSION | tr - _) +VERSION=${VERSION:-20160619} +SRCNAM=BLAKE2 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 @@ -41,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" @@ -60,9 +60,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM -unzip $CWD/$SRCNAM.zip -cd $SRCNAM +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -78,7 +78,7 @@ install -m 0755 b2sum $PKG/usr/bin/b2sum cd .. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |