wok annotate lzsa/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 4e2caf3cd17b |
children |
rev | line source |
---|---|
pascal@21613 | 1 # SliTaz package receipt. |
pascal@21613 | 2 |
pascal@21613 | 3 PACKAGE="lzsa" |
pascal@25534 | 4 VERSION="1.4.1" |
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@25597 | 14 # What is the latest version available today? |
pascal@24055 | 15 current_version() |
pascal@24055 | 16 { |
pascal@24055 | 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25597 | 18 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 19 } |
pascal@24055 | 20 |
pascal@21613 | 21 # Rules to configure and make the package. |
pascal@21613 | 22 compile_rules() |
pascal@21613 | 23 { |
Hans-G?nter@23160 | 24 sed -i 's|^CC=.*$|CC=gcc|;s|^CFLAGS=|&-std=gnu99 |' \ |
Hans-G?nter@23160 | 25 Makefile |
pascal@21613 | 26 make |
pascal@21613 | 27 } |
pascal@21613 | 28 |
pascal@21613 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21613 | 30 genpkg_rules() |
pascal@21613 | 31 { |
Hans-G?nter@23160 | 32 mkdir -p $fs/usr/bin |
Hans-G?nter@23160 | 33 mkdir -p $install/usr/share/doc |
Hans-G?nter@23160 | 34 |
Hans-G?nter@23160 | 35 cp -a $src/lzsa $fs/usr/bin |
Hans-G?nter@23160 | 36 cp $src/README* $install/usr/share/doc |
pascal@21613 | 37 } |