diff options
Diffstat (limited to 'network/bitcoin/bitcoin.SlackBuild')
-rw-r--r-- | network/bitcoin/bitcoin.SlackBuild | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/network/bitcoin/bitcoin.SlackBuild b/network/bitcoin/bitcoin.SlackBuild index d800b5c8c3..7e5142b0ed 100644 --- a/network/bitcoin/bitcoin.SlackBuild +++ b/network/bitcoin/bitcoin.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for bitcoin -# Copyright 2012 nomnombtc <nomnombtc@arcor.de> +# Copyright 2012-2024 nomnombtc <nomnombtc@arcor.de> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=bitcoin -VERSION=${VERSION:-0.20.1} +VERSION=${VERSION:-27.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -49,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="" @@ -73,7 +83,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # build bitcoin-core -[ -f autogen.sh ] && sh autogen.sh +[ -f autogen.sh ] && ./autogen.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -83,15 +93,15 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ $QRCODE \ --with-gui=qt5 \ - --build=$ARCH-slackware-linux \ - --host=$ARCH-slackware-linux + --disable-bench \ + --disable-tests \ + --disable-static \ + --build=$ARCH-slackware-linux -BITCOIN_GENBUILD_NO_GIT=1 make +make make install DESTDIR=$PKG -# Remove the "test" binaries. Alternatively, you can explicitly disable tests -# by adding "--enable-tests=no" to the above configure command. -rm $PKG/usr/bin/test* +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la mkdir -p $PKG/usr/share/{applications,pixmaps} @@ -115,4 +125,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |