diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-01-25 07:39:42 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-01-25 07:41:08 +0700 |
commit | 1a2f445976e6d5a38a1dfa6f6f11fabdd47dc2c0 (patch) | |
tree | 90444cf3b441da17a509c238144205c6a307bdec /libraries | |
parent | 67c57e11f82e763995612e08e7fe1bdd071dc87a (diff) |
libraries/secp256k1: Updated for version 0.4.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/secp256k1/secp256k1.SlackBuild | 24 | ||||
-rw-r--r-- | libraries/secp256k1/secp256k1.info | 6 |
2 files changed, 16 insertions, 14 deletions
diff --git a/libraries/secp256k1/secp256k1.SlackBuild b/libraries/secp256k1/secp256k1.SlackBuild index 17d58cd27329..2ade3f42aac4 100644 --- a/libraries/secp256k1/secp256k1.SlackBuild +++ b/libraries/secp256k1/secp256k1.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for secp256k1 -# Copyright 2016-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2016-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,9 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=secp256k1 -VERSION=${VERSION:-20170312} -SRCVER="9d560f992db26612ce2630b194aef5f44d63a530" -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.4.1} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +38,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -60,6 +56,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -70,9 +69,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRCVER -unzip $CWD/$PRGNAM-$SRCVER.zip -cd $PRGNAM-$SRCVER +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 \ @@ -93,6 +92,9 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-tests \ --disable-static \ --enable-module-recovery \ + --enable-module-ecdh \ + --enable-module-extrakeys \ + --enable-module-schnorrsig \ --with-gnu-ld \ --build=$ARCH-slackware-linux @@ -103,7 +105,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING *.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la diff --git a/libraries/secp256k1/secp256k1.info b/libraries/secp256k1/secp256k1.info index 712e87191382..ca085c24f6ee 100644 --- a/libraries/secp256k1/secp256k1.info +++ b/libraries/secp256k1/secp256k1.info @@ -1,8 +1,8 @@ PRGNAM="secp256k1" -VERSION="20170312" +VERSION="0.4.1" HOMEPAGE="https://github.com/bitcoin-core/secp256k1" -DOWNLOAD="https://github.com/bitcoin-core/secp256k1/archive/9d560f992db26612ce2630b194aef5f44d63a530/secp256k1-9d560f992db26612ce2630b194aef5f44d63a530.zip" -MD5SUM="9ccb51e81a4d94bc89d9d9d4a400e55a" +DOWNLOAD="https://github.com/bitcoin-core/secp256k1/archive/v0.4.1/secp256k1-0.4.1.tar.gz" +MD5SUM="d4900c6398801d5fcd58957b4519c5db" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |