SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "zx0"

# SliTaz package receipt.

PACKAGE="zx0"
GITHASH="ecde3a2ae05061fe06469ed46df81a33b7de7d86"
VERSION="20211217"
CATEGORY="system-tools"
SHORT_DESC="Data compressor for 8-bit computers and low-end platforms."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://github.com/einar-saukas/ZX0"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE/commits/main 2>/dev/null | \
    sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd src
    gcc -O3 -o ../zx0 zx0.c optimize.c compress.c memory.c
    gcc -O3 -o ../dzx0 dzx0.c
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    mkdir -p $install/usr/share/doc

    cp -a $src/*zx0    $fs/usr/bin
    cp $src/README*    $install/usr/share/doc
    cp $src/LICENS*    $install/usr/share/doc
}
6011 packages and 861692 files in cooking database (Sun Apr 20 00:48:06 2025)