diff options
Diffstat (limited to 'network/bitcoin/bitcoin.SlackBuild')
-rw-r--r-- | network/bitcoin/bitcoin.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/network/bitcoin/bitcoin.SlackBuild b/network/bitcoin/bitcoin.SlackBuild index 7789db67458b0..dc1e43e930c97 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 |