wok view zx0/receipt @ rev 25652
Up ntfs-3g (2022.10.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 06 11:59:08 2024 +0000 (6 months ago) |
parents | 8ac6f7029d68 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="zx0"
4 GITHASH="ecde3a2ae05061fe06469ed46df81a33b7de7d86"
5 VERSION="20211217"
6 CATEGORY="system-tools"
7 SHORT_DESC="Data compressor for 8-bit computers and low-end platforms."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://github.com/einar-saukas/ZX0"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - $WEB_SITE/commits/main 2>/dev/null | \
19 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd src
26 gcc -O3 -o ../zx0 zx0.c optimize.c compress.c memory.c
27 gcc -O3 -o ../dzx0 dzx0.c
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 mkdir -p $install/usr/share/doc
36 cp -a $src/*zx0 $fs/usr/bin
37 cp $src/README* $install/usr/share/doc
38 cp $src/LICENS* $install/usr/share/doc
39 }