wok-next diff brotli/receipt @ rev 20939

Fix brisk-menu, mate-backgrounds, mate-user-guide
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Aug 26 09:13:55 2018 +0300 (2018-08-26)
parents 9a5b17ddcfcb
children 49a10d2a7814
line diff
     1.1 --- a/brotli/receipt	Tue May 30 05:37:57 2017 +0300
     1.2 +++ b/brotli/receipt	Sun Aug 26 09:13:55 2018 +0300
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="brotli"
     1.7 -VERSION="0.6.0"
     1.8 +VERSION="1.0.5"
     1.9  CATEGORY="base-system"
    1.10  SHORT_DESC="A generic-purpose lossless compression algorithm"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -10,31 +10,28 @@
    1.13  TAGS="compression"
    1.14  
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    1.17 +WGET_URL="https://github.com/google/brotli/archive/v$VERSION.tar.gz"
    1.18  
    1.19  BUILD_DEPENDS="cmake"
    1.20  SPLIT="brotli-dev"
    1.21  
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 -	mkdir build && cd build &&
    1.26 -	cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
    1.27 +compile_rules() {
    1.28 +	mkdir build
    1.29 +	cd    build
    1.30 +	cmake \
    1.31 +		-DCMAKE_BUILD_TYPE=Release \
    1.32 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.33 +		.. &&
    1.34  	make &&
    1.35 -	make install
    1.36 +	make install || return 1
    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 +	cook_pick_docs $src/docs/*.pdf
    1.44 +	cook_pick_manpages $src/docs/*.1 $src/docs/*.3
    1.45  }
    1.46  
    1.47 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.48 -genpkg_rules()
    1.49 -{
    1.50 +genpkg_rules() {
    1.51  	case $PACKAGE in
    1.52 -		brotli) copy @std ;;
    1.53 -		brotli-dev) copy @dev ;;
    1.54 +		brotli)     copy @std;;
    1.55 +		brotli-dev) copy @dev;;
    1.56  	esac
    1.57  }