wok-next view lzham/receipt @ rev 21316

updated jabberd2 (2.2.16 -> 2.7.0)
author Hans-G?nter Theisgen
date Tue Dec 10 17:15:57 2019 +0100 (2019-12-10)
parents
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lzham"
4 VERSION="1.0.1"
5 CATEGORY="base-system"
6 SHORT_DESC="Lossless data compression codec with LZMA-like ratios but 1.5x-8x \
7 faster decompression speed"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://github.com/richgel999/lzham_codec"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GITHUB/richgel999/lzham_codec/tarball/v1_0_stable1"
15 BUILD_DEPENDS="cmake libunistring"
16 SPLIT="$PACKAGE-dev"
18 compile_rules() {
19 case $ARCH in
20 i?86) ARCH_ARGS='-DBUILD_X64=OFF';;
21 x86_64) ARCH_ARGS='';;
22 esac
24 mkdir build
25 cd build
26 cmake \
27 -DCMAKE_BUILD_TYPE=Release \
28 -DCMAKE_INSTALL_PREFIX=/usr \
29 $ARCH_ARGS \
30 .. &&
31 make &&
32 make install || return 1
34 install -Dm755 lzhamtest/lzhamtest $install/usr/bin/lzhamtest
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 *-dev)
40 copy @dev
41 ;;
42 *)
43 copy @std
44 TAGS="compression"
45 ;;
46 esac
47 }