SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ninja"

# SliTaz package receipt.

PACKAGE="ninja"
VERSION="1.11.0"
CATEGORY="development"
SHORT_DESC="A small build system with a focus on speed."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="Apache"
WEB_SITE="https://ninja-build.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/ninja-build/$PACKAGE/archive/v$VERSION.tar.gz"

DEPENDS="gcc-lib-base"
BUILD_DEPENDS="python3"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    python3 ./configure.py --bootstrap
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    mkdir -p $install/usr/share/doc

    cp $src/doc/manual.asciidoc    $install/usr/share/doc
    cp -a $src/ninja        $fs/usr/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)