wok-6.x view lz4/receipt @ rev 24913
updated mobile-broadband-provider-info and mobile-broadband-provider-info-dev (20190618 -> 20220315)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 15:53:04 2022 +0100 (2022-04-09) |
parents | 9c5316bc7e8e |
children | 0748d49b3e26 |
line source
1 # SliTaz package receipt.
3 PACKAGE="lz4"
4 VERSION="1.9.3"
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 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 find -type f | xargs sed -i 's|usr/local|usr|'
26 make LDFLAGS="$LDFLAGS -lrt" && make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $install/usr/share
33 cp -a $install/usr/bin $fs/usr
34 cp -a $src/doc $install/usr/share
35 cp $src/README* $src/NEWS $src/LICENSE $install/usr/share/doc
36 }