From 12de7751f9d63fbe1f10c919828a55fcabb1fce8 Mon Sep 17 00:00:00 2001 From: nomnombtc Date: Mon, 24 Dec 2012 00:38:32 +0100 Subject: network/bitcoin: Updated for version 0.7.2, cleanups. (Fixed deps info, autodetect miniupnpc --ponce) Signed-off-by: Matteo Bernardini --- network/bitcoin/bitcoin.SlackBuild | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'network/bitcoin/bitcoin.SlackBuild') 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 -- cgit v1.2.3