diff options
Diffstat (limited to 'business/ledger/ledger.SlackBuild')
-rw-r--r-- | business/ledger/ledger.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/business/ledger/ledger.SlackBuild b/business/ledger/ledger.SlackBuild index 04a1c1b7aa401..89b8bc095e5b1 100644 --- a/business/ledger/ledger.SlackBuild +++ b/business/ledger/ledger.SlackBuild @@ -4,7 +4,7 @@ # Updated by simotrone (simotrone at gmail dot com) PRGNAM=ledger -VERSION=${VERSION:-3.1.3} +VERSION=${VERSION:-3.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -36,8 +36,16 @@ 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 {} \; -./acprep --prefix=/usr update -make install DESTDIR=$PKG +patch -p1 < $CWD/CMakeLists.txt.patch + +mkdir -p build +cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + .. + make + make install DESTDIR=$PKG +cd .. 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 |