wok view lz4/receipt @ rev 25647

Backout salvador 10% speedup: crashes with large files
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 26 12:15:51 2024 +0000 (9 months ago)
parents 0748d49b3e26
children 1b965c2713aa
line source
1 # SliTaz package receipt.
3 PACKAGE="lz4"
4 VERSION="1.9.4"
5 CATEGORY="base-system"
6 SHORT_DESC="High speed lossless compressor."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/lz4/lz4"
10 TARBALL="$PACKAGE-r$VERSION.tar.gz"
11 WGET_URL="https://github.com/lz4/lz4/archive/v$VERSION.tar.gz"
12 TAGS="compression"
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 find -type f | xargs sed -i 's|usr/local|usr|'
27 make LDFLAGS="$LDFLAGS -lrt" && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr $install/usr/share
34 cp -a $install/usr/bin $fs/usr
35 cp -a $src/doc $install/usr/share
36 cp $src/README* $src/NEWS $src/LICENSE $install/usr/share/doc
37 }