wok view salvador/receipt @ rev 25646

salvador: 10% speedup for shrink
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 21 10:02:07 2024 +0000 (3 months ago)
parents cb71c3a76f5a
children 70750875bc0b
line source
1 # SliTaz package receipt.
3 PACKAGE="salvador"
4 VERSION="1.4.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="A free, open-source compressor for the ZX0 format."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="zlib/libpng cc"
9 WEB_SITE="https://github.com/emmanuel-marty/salvador"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
18 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|^CC=.*$|CC=gcc|;s|^CFLAGS=|&-std=gnu99 |' \
25 Makefile
26 patch -p0 < $stuff/shrink.u
27 make
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/salvador $fs/usr/bin
37 cp $src/README* $install/usr/share/doc
38 }