wok-undigest diff meson/receipt @ rev 1250

copied recipes for meson and ninja from cooking wok
author Hans-G?nter Theisgen
date Fri Aug 12 17:42:26 2022 +0100 (22 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/meson/receipt	Fri Aug 12 17:42:26 2022 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="meson"
     1.7 +VERSION="0.62.2"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="The Meson Build System."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="Apache"
    1.12 +WEB_SITE="https://mesonbuild.com/"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WGET_URL="https://github.com/mesonbuild/$PACKAGE/releases/download/$VERSION/$TARBALL"
    1.16 +
    1.17 +DEPENDS="ninja py3k"
    1.18 +BUILD_DEPENDS="py3k"
    1.19 +
    1.20 +current_version()
    1.21 +{
    1.22 +	wget -O - ${WGET_URL%/rele*} 2>/dev/null | \
    1.23 +	sed '/releases.tag/!d;s|.*/tag.v*\(.*\)".*|\1|;q'
    1.24 +}
    1.25 +
    1.26 +# Rules to configure and make the package.
    1.27 +compile_rules()
    1.28 +{
    1.29 +	python3 setup.py build &&
    1.30 +	python3 setup.py install --root=$DESTDIR
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	cp -a $install/usr	$fs
    1.37 +}