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="python"

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

# Rules to configure and make the package.
compile_rules()
{
    ./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
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)