wok-next view brotli/receipt @ rev 21066
Switch some python packages to traditional build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 06 13:30:23 2018 +0200 (2018-12-06) |
parents | d5aab818505e |
children | 82b613cfd1e0 |
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"
14 BUILD_DEPENDS="cmake"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 mkdir build
19 cd build
20 cmake \
21 -DCMAKE_BUILD_TYPE=Release \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 .. &&
24 make &&
25 make install || return 1
27 cook_pick_docs $src/docs/*.pdf
28 cook_pick_manpages $src/docs/*.1 $src/docs/*.3
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 brotli)
34 copy @std
35 TAGS="compression"
36 ;;
37 *-dev)
38 copy @dev
39 ;;
40 esac
41 }