wok-current view lz4ultra/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="lz4ultra"
4 VERSION="1.3.0"
5 CATEGORY="base-system"
6 SHORT_DESC="Optimal LZ4 packer with faster decompression."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="zlib/libpng cc"
9 WEB_SITE="https://github.com/emmanuel-marty/lz4ultra"
10 TARBALL="$PACKAGE-r$VERSION.tar.gz"
11 WGET_URL="https://github.com/emmanuel-marty/lz4ultra/archive/$VERSION.tar.gz"
12 TAGS="compression"
14 current_version()
15 {
16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 sed 's|^CC=clang|CC=gcc|;s|^CFLAGS=|&-std=gnu99 |' -i Makefile &&
24 make
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $install/usr/share/doc
31 cp -a $src/lz4ultra $fs/usr/bin
32 cp -a $src/README.md $install/usr/share/doc
33 }