wok-next diff brotli/receipt @ rev 19987

Up cmake (3.9.1), cookutils (980).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 19 23:39:33 2017 +0300 (2017-10-19)
parents 80800de950ff
children d3707642a563
line diff
     1.1 --- a/brotli/receipt	Fri Sep 02 16:17:00 2016 +0200
     1.2 +++ b/brotli/receipt	Thu Oct 19 23:39:33 2017 +0300
     1.3 @@ -1,29 +1,40 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="brotli"
     1.8 -VERSION="0.5.2"
     1.9 +VERSION="0.6.0"
    1.10  CATEGORY="base-system"
    1.11 -SHORT_DESC="A generic-purpose lossless compression algorithm."
    1.12 +SHORT_DESC="A generic-purpose lossless compression algorithm"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="MIT"
    1.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16  WEB_SITE="https://github.com/google/brotli"
    1.17 -WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    1.18  TAGS="compression"
    1.19  
    1.20 -DEPENDS="gcc-lib-base"
    1.21 -BUILD_DEPENDS="python-dev setuptools cmake"
    1.22 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.23 +WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    1.24 +
    1.25 +BUILD_DEPENDS="cmake"
    1.26 +SPLIT="brotli-dev"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	cmake .
    1.32 -	make bro
    1.33 +	mkdir build && cd build &&
    1.34 +	cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
    1.35 +	make &&
    1.36 +	make install
    1.37 +
    1.38 +	cd $src/docs
    1.39 +	docdir=$install/usr/share/doc/brotli-$VERSION
    1.40 +	mkdir -p $docdir
    1.41 +	cp ./*.pdf $docdir
    1.42 +	cook_pick_manpages decode.h.3 encode.h.3 types.h.3
    1.43  }
    1.44  
    1.45  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.46  genpkg_rules()
    1.47  {
    1.48 -	mkdir -p $fs/usr/bin
    1.49 -	cp -a $src/bro $fs/usr/bin/
    1.50 +	case $PACKAGE in
    1.51 +		brotli) copy @std ;;
    1.52 +		brotli-dev) copy @dev ;;
    1.53 +	esac
    1.54  }