wok-next view brotli/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | 82b613cfd1e0 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="brotli"
4 VERSION="1.0.7"
5 CATEGORY="base-system"
6 SHORT_DESC="A generic-purpose lossless compression algorithm"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/google/brotli"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/google/brotli/archive/v$VERSION.tar.gz"
13 TARBALL_SHA1="ee64a380152aa20fbc1098fe3799104884c570c1"
15 BUILD_DEPENDS="cmake python-dev python3-dev"
16 SPLIT="lib$PACKAGE $PACKAGE $PACKAGE-dev \
17 python-$PACKAGE:py2 python3-$PACKAGE:py3"
18 # brotli binary doesn't depends on its libs, so pack them separately
20 COPY_python_brotli="@std"
21 COPY_python3_brotli="@std"
23 CAT_libbrotli="base-system|shared library"
24 CAT_python_brotli="python|use in Python2"
25 CAT_python3_brotli="python|use in Python3"
27 DEPENDS_std=" "
28 DEPENDS_libbrotli=" "
29 DEPENDS_dev="$PACKAGE lib$PACKAGE"
30 DEPENDS_python_brotli="python"
31 DEPENDS_python3_brotli="python3"
33 TAGS_std="compression"
35 compile_rules() {
36 case $SET in
37 '')
38 mkdir build
39 cd build
40 cmake \
41 -DCMAKE_BUILD_TYPE=Release \
42 -DCMAKE_INSTALL_PREFIX=/usr \
43 .. &&
44 make &&
45 make install || return 1
47 cook_pick_docs $src/docs/*.pdf
48 cook_pick_manpages $src/docs/*.1 $src/docs/*.3
49 ;;
50 py2)
51 python -B setup.py install --root="$install";;
52 py3)
53 python3 -B setup.py install --root="$install";;
54 esac
55 }