aboutsummaryrefslogtreecommitdiff
path: root/development/libbitcoin/libbitcoin.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/libbitcoin/libbitcoin.SlackBuild')
-rw-r--r--development/libbitcoin/libbitcoin.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/development/libbitcoin/libbitcoin.SlackBuild b/development/libbitcoin/libbitcoin.SlackBuild
index f51deaf1ca320..a48a495ded5f9 100644
--- a/development/libbitcoin/libbitcoin.SlackBuild
+++ b/development/libbitcoin/libbitcoin.SlackBuild
@@ -60,21 +60,27 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xjf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
-
+chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Fix missing include (thanks to Debian)
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791092;msg=12
+patch -p1 < $CWD/libbitcoin-2.0_mnemonic.cpp.patch
+
autoreconf -i
+
if [ -e /usr/include/leveldb/db.h ]; then
export LEVELDB_FLAG=--enable-leveldb
else
export LEVELDB_FLAG=
fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \