summaryrefslogtreecommitdiffstats
path: root/network/bitcoin/bitcoin.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/bitcoin/bitcoin.SlackBuild')
-rw-r--r--network/bitcoin/bitcoin.SlackBuild24
1 files changed, 11 insertions, 13 deletions
diff --git a/network/bitcoin/bitcoin.SlackBuild b/network/bitcoin/bitcoin.SlackBuild
index b8c6a11c5c..7e5142b0ed 100644
--- a/network/bitcoin/bitcoin.SlackBuild
+++ b/network/bitcoin/bitcoin.SlackBuild
@@ -2,7 +2,7 @@
# 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
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=bitcoin
-VERSION=${VERSION:-23.0}
+VERSION=${VERSION:-27.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,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
@@ -59,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=""
@@ -83,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 \
@@ -93,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
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}
@@ -120,8 +120,6 @@ cp -a doc/README.md COPYING doc/assets-attribution.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -f $PKG/usr/lib*/*.la
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh