diff options
Diffstat (limited to 'network/bitcoin')
-rw-r--r-- | network/bitcoin/README | 11 | ||||
-rw-r--r-- | network/bitcoin/bitcoin.SlackBuild | 61 | ||||
-rw-r--r-- | network/bitcoin/bitcoin.info | 8 |
3 files changed, 43 insertions, 37 deletions
diff --git a/network/bitcoin/README b/network/bitcoin/README index 7950e139cb..36d38a4e0e 100644 --- a/network/bitcoin/README +++ b/network/bitcoin/README @@ -6,11 +6,10 @@ server or trusted parties. Users hold the crypto keys to their own money and transact directly with each other, with the help of a P2P network to check for double-spending. -This Bitcoin client builds the backbone of the bitcoin network. -It downloads, verifies and distributes the blockchain to other -peers in the network. It uses lots of diskspace and bandwidth. -If you just want to send and receive Bitcoins you can also look -at a light client like Electrum. +Bitcoin Core connects to the Bitcoin peer-to-peer network to +download and fully validate blocks and transactions. Please make sure to read the release notes first before upgrading: -https://bitcoincore.org/en/releases/28.1/ +https://bitcoincore.org/en/releases/29.0/ + +zeromq is an optional dependency (autodetected). diff --git a/network/bitcoin/bitcoin.SlackBuild b/network/bitcoin/bitcoin.SlackBuild index 8505c71c8b..572c671bdc 100644 --- a/network/bitcoin/bitcoin.SlackBuild +++ b/network/bitcoin/bitcoin.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bitcoin -VERSION=${VERSION:-28.1} +VERSION=${VERSION:-29.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -64,11 +64,11 @@ else LIBDIRSUFFIX="" fi -# Detect qrencode -if [ -x /usr/bin/qrencode ]; then QRCODE="--with-qrencode"; else QRCODE=""; fi - set -e +# autodetect build time options +if pkg-config --exists libzmq; then ZMQ=ON; else ZMQ=OFF; fi + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -82,24 +82,32 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# build bitcoin-core -[ -f autogen.sh ] && ./autogen.sh -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --mandir=/usr/man \ - $QRCODE \ - --with-gui=qt5 \ - --disable-bench \ - --disable-tests \ - --disable-static \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG +# cmake in 15.0 is slightly too old, needs cmake-opt. +if [ $(cmake /V | awk 'NR==1{print $3}') == "3.21.4" ]; then + echo "export PATH for cmake-opt" + export PATH="/opt/cmake-opt/bin/:$PATH" +fi + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_MANDIR=/usr/man \ + -DBUILD_TESTS=OFF \ + -DBUILD_GUI=ON \ + -DBUILD_TX=ON \ + -DBUILD_UTIL=ON \ + -DBUILD_WALLET_TOOL=ON \ + -DWITH_BDB=ON \ + -DWITH_QRENCODE=ON \ + -DWITH_ZMQ=$ZMQ \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install/strip DESTDIR=$PKG +cd .. rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la @@ -108,15 +116,14 @@ mkdir -p $PKG/usr/share/{applications,pixmaps} install -m 0644 src/qt/res/icons/bitcoin.png $PKG/usr/share/pixmaps/ install -m 0644 $CWD/bitcoin-qt.desktop $PKG/usr/share/applications/ -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a doc/README.md COPYING doc/assets-attribution.md \ - doc/build-unix.md doc/release-notes.md doc/tor.md \ +cp -a \ + COPYING doc/{bitcoin-conf,descriptors,files,i2p,{JSON-RPC,REST}-interface,\ +managing-wallets,multisig-tutorial,p2p-bad-ports,psbt,reduce-{memory,traffic},\ +release-notes,tor,zmq}.md share/rpcauth/rpcauth.py \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/network/bitcoin/bitcoin.info b/network/bitcoin/bitcoin.info index d305268796..d148721641 100644 --- a/network/bitcoin/bitcoin.info +++ b/network/bitcoin/bitcoin.info @@ -1,10 +1,10 @@ PRGNAM="bitcoin" -VERSION="28.1" +VERSION="29.0" HOMEPAGE="https://bitcoincore.org" -DOWNLOAD="https://bitcoincore.org/bin/bitcoin-core-28.1/bitcoin-28.1.tar.gz" -MD5SUM="48004c3976dea41a273ace97a8a40392" +DOWNLOAD="https://bitcoincore.org/bin/bitcoin-core-29.0/bitcoin-29.0.tar.gz" +MD5SUM="2fc939451a3755f92906cf3e6ee11e32" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="cmake-opt" MAINTAINER="nomnombtc" EMAIL="nomnombtc@arcor.de" |