wok-current annotate lzham_codec/receipt @ rev 23943
Up cryptsetup-dev (2.3.4), lzham_codec (1_0_stable1), slitaz-boot-scripts (466), tazlito (527)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 17 10:31:38 2020 +0000 (2020-09-17) |
parents | 3d6389217d9a |
children | 6b6d14c9f7e9 |
rev | line source |
---|---|
pascal@17542 | 1 # SliTaz package receipt. |
pascal@17542 | 2 |
pascal@17542 | 3 PACKAGE="lzham_codec" |
pascal@23943 | 4 VERSION="1_0_stable1" |
pascal@17542 | 5 CATEGORY="base-system" |
pascal@17542 | 6 SHORT_DESC="Lossless data compression codec with LZMA-like ratios but 1.5x-8x faster decompression speed." |
pascal@17542 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17542 | 8 LICENSE="MIT" |
pascal@17542 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17542 | 10 WEB_SITE="https://github.com/richgel999/lzham_codec" |
pascal@23943 | 11 WGET_URL="$WEB_SITE/archive/v${VERSION/./_}.tar.gz" |
pascal@18336 | 12 TAGS="compression" |
pascal@17542 | 13 |
pascal@17542 | 14 DEPENDS="gcc-lib-base" |
pascal@17542 | 15 BUILD_DEPENDS="wget cmake" |
pascal@17542 | 16 |
pascal@23943 | 17 current_version() |
pascal@23943 | 18 { |
pascal@23943 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@23943 | 20 sed '/archive.*tar/!d;s|.*archive/v\(.*\).tar.*|\1|;q' |
pascal@23943 | 21 } |
pascal@23943 | 22 |
pascal@17542 | 23 # Rules to configure and make the package. |
pascal@17542 | 24 compile_rules() |
pascal@17542 | 25 { |
pascal@17544 | 26 cmake . -DBUILD_X64=OFF -DCMAKE_BUILD_TYPE=Release && make |
pascal@17542 | 27 } |
pascal@17542 | 28 |
pascal@17542 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17542 | 30 genpkg_rules() |
pascal@17542 | 31 { |
pascal@17542 | 32 mkdir -p $fs/usr/bin |
pascal@17542 | 33 cp -a $src/bin_linux/lzhamtest $fs/usr/bin |
pascal@17542 | 34 } |