wok-current annotate lzsa/receipt @ rev 24972
Up lzsa (1.3.11)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 01 08:42:44 2022 +0000 (2022-05-01) |
parents | 67e02e438fee |
children | 1f9238437d3b |
rev | line source |
---|---|
pascal@21613 | 1 # SliTaz package receipt. |
pascal@21613 | 2 |
pascal@21613 | 3 PACKAGE="lzsa" |
pascal@24972 | 4 VERSION="1.3.11" |
pascal@21613 | 5 CATEGORY="system-tools" |
Hans-G?nter@23160 | 6 SHORT_DESC="Efficient packer optimized for fast decompression on 8-bit cpu." |
pascal@21613 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21613 | 8 LICENSE="zlib/libpng cc" |
Hans-G?nter@23160 | 9 WEB_SITE="https://github.com/emmanuel-marty/lzsa" |
Hans-G?nter@23160 | 10 |
pascal@21613 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@21613 | 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
pascal@21613 | 13 |
pascal@24055 | 14 current_version() |
pascal@24055 | 15 { |
pascal@24055 | 16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 18 } |
pascal@24055 | 19 |
pascal@21613 | 20 # Rules to configure and make the package. |
pascal@21613 | 21 compile_rules() |
pascal@21613 | 22 { |
Hans-G?nter@23160 | 23 sed -i 's|^CC=.*$|CC=gcc|;s|^CFLAGS=|&-std=gnu99 |' \ |
Hans-G?nter@23160 | 24 Makefile |
pascal@21613 | 25 make |
pascal@21613 | 26 } |
pascal@21613 | 27 |
pascal@21613 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21613 | 29 genpkg_rules() |
pascal@21613 | 30 { |
Hans-G?nter@23160 | 31 mkdir -p $fs/usr/bin |
Hans-G?nter@23160 | 32 mkdir -p $install/usr/share/doc |
Hans-G?nter@23160 | 33 |
Hans-G?nter@23160 | 34 cp -a $src/lzsa $fs/usr/bin |
Hans-G?nter@23160 | 35 cp $src/README* $install/usr/share/doc |
pascal@21613 | 36 } |