SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ledger"

# SliTaz package receipt.

PACKAGE="ledger"
VERSION="2.6.3"
CATEGORY="utilities"
SHORT_DESC="A double-entry accounting system that is accessed from the UNIX command-line."
MAINTAINER="paul@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://ledger-cli.org/" 
WGET_URL="https://github.com/ledger/ledger/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="pcre gmp"
BUILD_DEPENDS="pcre-dev gmp-dev automake"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/ledger/ledger/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    [ -x ./autogen.sh ] && ./autogen.sh
    ./configure --prefix=/usr \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share/ledger
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    
    # copy sample file
    cp -a $src/sample.dat $fs/usr/share/ledger
}

6017 packages and 861739 files in cooking database (Sun Sep 21 00:48:01 2025)