wok-current view ninja/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | f3f4f971f674 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ninja"
4 VERSION="1.11.0"
5 CATEGORY="development"
6 SHORT_DESC="A small build system with a focus on speed."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://ninja-build.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/ninja-build/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="gcc-lib-base"
15 BUILD_DEPENDS="python3"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python3 ./configure.py --bootstrap
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 mkdir -p $install/usr/share/doc
35 cp $src/doc/manual.asciidoc $install/usr/share/doc
36 cp -a $src/ninja $fs/usr/bin
37 }