n/bitcoin: Removed.

slackware-14.2
Damien Goutte-Gattat 6 years ago
parent 7627a3dfe2
commit 7a2d5b1fd4
  1. 1
      n/bitcoin/bitcoin-0.13.2.tar.gz.sha1
  2. 133
      n/bitcoin/bitcoin.SlackBuild
  3. 4
      n/bitcoin/doinst.sh
  4. 12
      n/bitcoin/slack-desc

@ -1 +0,0 @@
b20ebcdd38b82f50ad7bbe9098e15cc4c1b7067a bitcoin-0.13.2.tar.gz

@ -1,133 +0,0 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest bitcoin sourcecode is available at:
# <https://github.com/bitcoin/bitcoin>.
#
# Recommends: n/miniupnpc, l/qrencode, d/protobuf
# Source package infos
NAMESRC=${NAMESRC:-bitcoin}
VERSION=${VERSION:-0.13.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/bitcoin/bitcoin/archive/v$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-bitcoin}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
./autogen.sh
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX
make -j $JOBS
make install-strip DESTDIR=$PKG
# Install extra files
install -D -m 644 contrib/bitcoin-cli.bash-completion \
$PKG/etc/bash-completion.d/bitcoin-cli
install -D -m 644 contrib/bitcoin-tx.bash-completion \
$PKG/etc/bash-completion.d/bitcoin-tx
install -D -m 644 contrib/debian/bitcoin-qt.desktop \
$PKG/usr/share/applications/bitcoint-qt.desktop
mkdir -p $PKG/usr/share/pixmaps
install -m 644 share/pixmaps/bitcoin{16.xpm,32.xpm,128.png} \
$PKG/usr/share/pixmaps
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CONTRIBUTING.md COPYING README.md \
doc/REST-interface.md doc/developer-notes.md \
doc/dnsseed-policy.md doc/files.md doc/tor.md \
$PKG/usr/doc/$NAME
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

@ -1,4 +0,0 @@
#!/bin/sh
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
fi

@ -1,12 +0,0 @@
|-----handy-ruler-----------------------------------------------------|
bitcoin: bitcoin (Bitcoin Core)
bitcoin:
bitcoin: Bitcoin is an experimental digital currency that enables instant
bitcoin: payments to anyone, anywhere in the world. Bitcoin uses peer-to-peer
bitcoin: technology to operate with no central authority: managing
bitcoin: transactions and issuing money are carried out collectively by the
bitcoin: network. Bitcoin Core is the name of open source software which
bitcoin: enables the use of this currency.
bitcoin:
bitcoin:
bitcoin:
Loading…
Cancel
Save