Permalink
Browse files

SBo sync

  • Loading branch information...
1 parent 49bc968 commit 17ca8e5d08d7aba6dde8de5083fa95f272639c06 @nomnombtc committed Jan 7, 2013
Showing with 20 additions and 15 deletions.
  1. +4 −4 bitcoin/README
  2. +8 −3 bitcoin/bitcoin.SlackBuild
  3. +1 −1 bitcoin/bitcoin.info
  4. +7 −7 bitcoin/slack-desc
View
@@ -2,10 +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.
-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).
View
@@ -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
View
@@ -1,7 +1,7 @@
PRGNAM="bitcoin"
VERSION="0.7.2"
HOMEPAGE="http://www.bitcoin.org"
-DOWNLOAD="http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.7.2/bitcoin-0.7.2-linux.tar.gz"
+DOWNLOAD="http://downloads.sourceforge.net/bitcoin/bitcoin-0.7.2-linux.tar.gz"
MD5SUM="a9596526a3c9d62cbcab5dd45957c717"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
View
@@ -1,16 +1,16 @@
# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
-# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':'.
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
- |-----handy-ruler------------------------------------------------------|
+ |-----handy-ruler------------------------------------------------------|
bitcoin: bitcoin (P2P electronic cash system)
bitcoin:
bitcoin: Bitcoin is a free open source peer-to-peer electronic cash system
bitcoin: that is completely decentralized, without the need for a central
-bitcoin: server or trusted parties. Users hold the crypto keys to their own
+bitcoin: server or trusted parties. Users hold the crypto keys to their own
bitcoin: money and transact directly with each other, with the help of
bitcoin: a P2P network to check for double-spending.
bitcoin:

0 comments on commit 17ca8e5

Please sign in to comment.