diff options
author | nomnombtc <nomnombtc@arcor.de> | 2014-03-20 00:39:57 +0700 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2014-03-21 13:01:21 -0500 |
commit | 8d6ef5fb30898e53d6a32b239b848920dc362802 (patch) | |
tree | ea2de8fe6daa77df6932cb63f324431ca065aace /network/bitcoin | |
parent | 6904d3dc021761b8b7e04a5b1e53026c85b5c92e (diff) | |
download | slackbuilds-8d6ef5fb30898e53d6a32b239b848920dc362802.tar.gz |
network/bitcoin: Updated for version 0.9.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/bitcoin')
-rw-r--r-- | network/bitcoin/bitcoin.SlackBuild | 59 | ||||
-rw-r--r-- | network/bitcoin/bitcoin.info | 8 |
2 files changed, 26 insertions, 41 deletions
diff --git a/network/bitcoin/bitcoin.SlackBuild b/network/bitcoin/bitcoin.SlackBuild index d5c8771650..a14adf8e00 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.6} +VERSION=${VERSION:-0.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,19 +55,20 @@ else fi # Detect miniupnpc -if [ -x /usr/bin/upnpc ]; then UPNP=1; else UPNP="-"; fi +if [ -x /usr/bin/upnpc ]; then UPNP="--enable-upnp-default"; else UPNP=""; fi # Detect qrencode -if [ -x /usr/bin/qrencode ]; then QRCODE=1; else QRCODE=0; fi +if [ -x /usr/bin/qrencode ]; then QRCODE="--with-qrencode"; else QRCODE=""; fi set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION-linux -tar xvf $CWD/${PRGNAM}-$VERSION-linux.tar.gz -cd $PRGNAM-$VERSION-linux +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz +cd $PRGNAM-$VERSION + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -75,42 +76,27 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -cd src - -# build bitcoin-qt -qmake \ - QMAKE_CFLAGS+="$SLKCFLAGS" \ - QMAKE_CXXFLAGS+="$SLKCFLAGS" \ - "USE_UPNP=$UPNP" \ - USE_QRCODE=$QRCODE \ - USE_SSL=1 +# build bitcoin-core +[ -f autogen.sh ] && sh autogen.sh +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LBIDIRSUFFIX} \ + --sysconfdir=/etc \ + --mandir=/usr/man \ + $UPNP \ + $QRCODE \ + --with-gui=qt4 \ + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux make - -# build bitcoind -cd src - - 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 - - CFLAGS="$SLKCFLAGS" \ - CXXFLAGS="$SLKCFLAGS" \ - make -f makefile.unix \ - bitcoind \ - USE_SSL=1 -cd - +make install DESTDIR=$PKG 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/ @@ -136,4 +122,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} - diff --git a/network/bitcoin/bitcoin.info b/network/bitcoin/bitcoin.info index c513aec556..2a4595b1b3 100644 --- a/network/bitcoin/bitcoin.info +++ b/network/bitcoin/bitcoin.info @@ -1,10 +1,10 @@ PRGNAM="bitcoin" -VERSION="0.8.6" +VERSION="0.9.0" HOMEPAGE="http://www.bitcoin.org" -DOWNLOAD="http://downloads.sourceforge.net/bitcoin/bitcoin-0.8.6-linux.tar.gz" -MD5SUM="4c24497a3c88adf1ef9855efaf31cf87" +DOWNLOAD="https://github.com/bitcoin/bitcoin/archive/v0.9.0.tar.gz" +MD5SUM="1c49e3df598bb8858bc45f17a8185f23" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="%README%" +REQUIRES="protobuf" MAINTAINER="nomnombtc" EMAIL="nomnombtc@arcor.de" |