summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author nomnombtc <nomnombtc@arcor.de>2012-12-24 00:38:32 +0100
committer Matteo Bernardini <ponce@slackbuilds.org>2012-12-24 00:38:49 +0100
commit12de7751f9d63fbe1f10c919828a55fcabb1fce8 (patch)
treed4c0fafdf759ce93f49300410da1eb44f1a6a4ba
parent83ad785c4701cd74ce5762053e93798b36d875cd (diff)
downloadslackbuilds-12de7751f9d63fbe1f10c919828a55fcabb1fce8.tar.gz
slackbuilds-12de7751f9d63fbe1f10c919828a55fcabb1fce8.tar.xz
network/bitcoin: Updated for version 0.7.2, cleanups.
(Fixed deps info, autodetect miniupnpc --ponce) Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--network/bitcoin/README10
-rw-r--r--network/bitcoin/bitcoin.SlackBuild13
-rw-r--r--network/bitcoin/bitcoin.info6
3 files changed, 16 insertions, 13 deletions
diff --git a/network/bitcoin/README b/network/bitcoin/README
index 752e8ba035..71375afe38 100644
--- a/network/bitcoin/README
+++ b/network/bitcoin/README
@@ -2,12 +2,10 @@ bitcoin (P2P electronic cash system)
Bitcoin is a free open source peer-to-peer electronic cash system
that is completely decentralized, without the need for a central
-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.
+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 requires: qrencode
-
-UPNP is disabled, it requires miniupnpc, which is not available on SBo.
+UPNP is disabled, it requires the optional dependency miniupnpc.
Package provides both, bitcoin-qt (GUI) and bitcoind (CLI).
diff --git a/network/bitcoin/bitcoin.SlackBuild b/network/bitcoin/bitcoin.SlackBuild
index 9a66f865a7..4234ef00eb 100644
--- a/network/bitcoin/bitcoin.SlackBuild
+++ b/network/bitcoin/bitcoin.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bitcoin
-VERSION=${VERSION:-0.7.1}
+VERSION=${VERSION:-0.7.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,6 +54,9 @@ else
LIBDIRSUFFIX=""
fi
+# Detect miniupnpc
+if [ -x /usr/bin/upnpc ]; then UPNP=1; else UPNP="-"; fi
+
set -e
rm -rf $PKG
@@ -75,7 +78,7 @@ cd src
qmake \
QMAKE_CFLAGS+="$SLKCFLAGS" \
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
- "USE_UPNP=-" \
+ "USE_UPNP=$UPNP" \
USE_SSL=1 \
USE_QRCODE=1
@@ -84,8 +87,10 @@ make
# build bitcoind
cd src
- # disable UPNP(this would require miniupnpc)
- sed -i 's/USE_UPNP:=0/USE_UPNP:=/g' makefile.unix
+ if [ "$UPNP" = "-" ]; then
+ # disable UPNP
+ sed -i 's/USE_UPNP:=0/USE_UPNP:=/g' makefile.unix
+ fi
# disable static linking, not supported by boost in slackware
sed -i 's/Bstatic/Bdynamic/g' makefile.unix
diff --git a/network/bitcoin/bitcoin.info b/network/bitcoin/bitcoin.info
index 1e670fddf6..8391aa6c9d 100644
--- a/network/bitcoin/bitcoin.info
+++ b/network/bitcoin/bitcoin.info
@@ -1,8 +1,8 @@
PRGNAM="bitcoin"
-VERSION="0.7.1"
+VERSION="0.7.2"
HOMEPAGE="http://www.bitcoin.org"
-DOWNLOAD="http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.7.1/bitcoin-0.7.1-linux.tar.gz"
-MD5SUM="e286c5de8489095d54e8a6a0e01cb1ab"
+DOWNLOAD="http://downloads.sourceforge.net/bitcoin/bitcoin-0.7.2-linux.tar.gz"
+MD5SUM="a9596526a3c9d62cbcab5dd45957c717"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="qrencode"