wok annotate zx1/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents cb71c3a76f5a
children
rev   line source
pascal@25611 1 # SliTaz package receipt.
pascal@25611 2
pascal@25611 3 PACKAGE="zx1"
pascal@25611 4 GITHASH="11e31cf91047562bb3cdedab1b34bb02ebdc8f83"
pascal@25611 5 VERSION="20211116"
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/ZX1"
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@25675 18 wget -O - $WEB_SITE/commits/main 2>/dev/null | \
pascal@25675 19 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
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 ../zx1 zx1.c optimize.c compress.c memory.c
pascal@25611 27 gcc -O3 -o ../dzx1 dzx1.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/*zx1 $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 }