wok diff salvador/receipt @ rev 25611

Add zx0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 01 18:37:27 2023 +0000 (15 months ago)
parents
children eaa4b9eff943
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/salvador/receipt	Tue Aug 01 18:37:27 2023 +0000
     1.3 @@ -0,0 +1,37 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="salvador"
     1.7 +VERSION="1.4.2"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="A free, open-source compressor for the ZX0 format."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="zlib/libpng cc"
    1.12 +WEB_SITE="https://github.com/emmanuel-marty/salvador"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
    1.16 +
    1.17 +# What is the latest version available today?
    1.18 +current_version()
    1.19 +{
    1.20 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    1.21 +	sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
    1.22 +}
    1.23 +
    1.24 +# Rules to configure and make the package.
    1.25 +compile_rules()
    1.26 +{
    1.27 +	sed -i 's|^CC=.*$|CC=gcc|;s|^CFLAGS=|&-std=gnu99 |' \
    1.28 +		Makefile
    1.29 +	make
    1.30 +}
    1.31 +
    1.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 +genpkg_rules()
    1.34 +{
    1.35 +	mkdir -p $fs/usr/bin
    1.36 +	mkdir -p $install/usr/share/doc
    1.37 +
    1.38 +	cp -a $src/salvador	$fs/usr/bin
    1.39 +	cp $src/README*	$install/usr/share/doc
    1.40 +}