summaryrefslogtreecommitdiff
path: root/network/bitcoin/bitcoin.SlackBuild
diff options
context:
space:
mode:
authornomnombtc <nomnombtc@arcor.de>2013-07-01 16:16:43 -0500
committerErik Hanson <erik@slackbuilds.org>2013-07-01 16:16:43 -0500
commit0eb5817a09dfb316a07aa6c415479bfad9de44cf (patch)
tree3f143ea9f54de98fe00c2b10a9a420f7a47e2be4 /network/bitcoin/bitcoin.SlackBuild
parent41079cd1d87a8f68306730e90d7ef1ab55d91dca (diff)
downloadslackbuilds-0eb5817a09dfb316a07aa6c415479bfad9de44cf.tar.gz
network/bitcoin: Updated for version 0.8.3.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/bitcoin/bitcoin.SlackBuild')
-rw-r--r--network/bitcoin/bitcoin.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/network/bitcoin/bitcoin.SlackBuild b/network/bitcoin/bitcoin.SlackBuild
index 7789db6745..dc1e43e930 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.8.1}
+VERSION=${VERSION:-0.8.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,6 +57,9 @@ fi
# Detect miniupnpc
if [ -x /usr/bin/upnpc ]; then UPNP=1; else UPNP="-"; fi
+# Detect qrencode
+if [ -x /usr/bin/qrencode ]; then QRCODE=1; else QRCODE=0; fi
+
set -e
rm -rf $PKG
@@ -79,8 +82,8 @@ qmake \
QMAKE_CFLAGS+="$SLKCFLAGS" \
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
"USE_UPNP=$UPNP" \
- USE_SSL=1 \
- USE_QRCODE=1
+ USE_QRCODE=$QRCODE \
+ USE_SSL=1
make
@@ -102,12 +105,16 @@ cd src
USE_SSL=1
cd -
-mkdir -p $PKG/usr/bin
+mkdir -p $PKG/usr/{bin,man/man{1,5}}
mkdir -p $PKG/usr/share/{applications,kde4/services,pixmaps}
install -m 0755 bitcoin-qt $PKG/usr/bin/
install -m 0755 src/bitcoind $PKG/usr/bin/
+install -m 0644 contrib/debian/manpages/bitcoin-qt.1 $PKG/usr/man/man1/
+install -m 0644 contrib/debian/manpages/bitcoind.1 $PKG/usr/man/man1/
+install -m 0644 contrib/debian/manpages/bitcoin.conf.5 $PKG/usr/man/man5/
+
install -m 0644 src/qt/res/icons/bitcoin.png $PKG/usr/share/pixmaps/
install -m 0644 $CWD/bitcoin-qt.desktop $PKG/usr/share/applications/
install -m 0644 $CWD/bitcoin.protocol $PKG/usr/share/kde4/services/
@@ -115,8 +122,11 @@ install -m 0644 $CWD/bitcoin.protocol $PKG/usr/share/kde4/services/
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 COPYING \
+cp -a doc/README.md COPYING \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild