diff options
author | nomnombtc | 2012-12-24 00:38:32 +0100 |
---|---|---|
committer | Matteo Bernardini | 2012-12-24 00:38:49 +0100 |
commit | 12de7751f9d63fbe1f10c919828a55fcabb1fce8 (patch) | |
tree | d4c0fafdf759ce93f49300410da1eb44f1a6a4ba /network/bitcoin/bitcoin.SlackBuild | |
parent | 83ad785c4701cd74ce5762053e93798b36d875cd (diff) | |
download | slackbuilds-12de7751f9d63fbe1f10c919828a55fcabb1fce8.tar.gz |
network/bitcoin: Updated for version 0.7.2, cleanups.
(Fixed deps info, autodetect miniupnpc --ponce)
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/bitcoin/bitcoin.SlackBuild')
-rw-r--r-- | network/bitcoin/bitcoin.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
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 |