wok annotate zx0/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 8ac6f7029d68
rev   line source
pascal@25611 1 # SliTaz package receipt.
pascal@25611 2
pascal@25611 3 PACKAGE="zx0"
pascal@25611 4 GITHASH="ecde3a2ae05061fe06469ed46df81a33b7de7d86"
pascal@25611 5 VERSION="20211217"
pascal@25611 6 CATEGORY="system-tools"
pascal@25611 7 SHORT_DESC="Data compressor for 8-bit computers and low-end platforms."
pascal@25611 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@25611 9 LICENSE="BSD"
pascal@25611 10 WEB_SITE="https://github.com/einar-saukas/ZX0"
pascal@25611 11
pascal@25611 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25611 13 WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
pascal@25611 14
pascal@25611 15 # What is the latest version available today?
pascal@25611 16 current_version()
pascal@25611 17 {
pascal@25611 18 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
pascal@25611 19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
pascal@25611 20 }
pascal@25611 21
pascal@25611 22 # Rules to configure and make the package.
pascal@25611 23 compile_rules()
pascal@25611 24 {
pascal@25611 25 cd src
pascal@25611 26 gcc -O3 -o ../zx0 zx0.c optimize.c compress.c memory.c
pascal@25611 27 gcc -O3 -o ../dzx0 dzx0.c
pascal@25611 28 }
pascal@25611 29
pascal@25611 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@25611 31 genpkg_rules()
pascal@25611 32 {
pascal@25611 33 mkdir -p $fs/usr/bin
pascal@25611 34 mkdir -p $install/usr/share/doc
pascal@25611 35
pascal@25611 36 cp -a $src/*zx0 $fs/usr/bin
pascal@25611 37 cp $src/README* $install/usr/share/doc
pascal@25611 38 cp $src/LICENS* $install/usr/share/doc
pascal@25611 39 }