summaryrefslogtreecommitdiff
path: root/business/ledger/ledger.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'business/ledger/ledger.SlackBuild')
-rw-r--r--business/ledger/ledger.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/business/ledger/ledger.SlackBuild b/business/ledger/ledger.SlackBuild
index 1135b1f649..fb5532d4b9 100644
--- a/business/ledger/ledger.SlackBuild
+++ b/business/ledger/ledger.SlackBuild
@@ -26,7 +26,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG/usr $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/v$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -36,6 +36,10 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
tar xvf $CWD/utfcpp.tar.gz -C lib/
+
+# Fix build with boost-1.58 (thanks to Arch Linux)
+patch -p1 < $CWD/ledger_git.diff
+
./acprep --prefix=/usr update
make install DESTDIR=$PKG