wok-next diff xcursor-comix/receipt @ rev 20303

gnustep-back: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 10 11:17:33 2017 +0100 (2017-11-10)
parents 40fab26c175d
children d43bf7aae921
line diff
     1.1 --- a/xcursor-comix/receipt	Mon May 09 21:59:10 2016 +0300
     1.2 +++ b/xcursor-comix/receipt	Fri Nov 10 11:17:33 2017 +0100
     1.3 @@ -1,22 +1,38 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="xcursor-comix"
     1.8 -VERSION="0.8.2"
     1.9 +VERSION="0.9.0.5" # 5 commits after the 0.9 release; author use 2-3 digits (0.8.2, 0.9)
    1.10 +COMMIT="2b025c3c"
    1.11  CATEGORY="customization"
    1.12  SHORT_DESC="Comix cursor theme"
    1.13  MAINTAINER="al.bobylev@gmail.com"
    1.14  LICENSE="GPL"
    1.15 -WEB_SITE="http://www.kde-look.org/content/show.php/ComixCursors?content=32627"
    1.16 +WEB_SITE="http://www.limitland.de/comixcursors"
    1.17 +
    1.18  TARBALL="ComixCursors-$VERSION.tar.bz2"
    1.19 -WGET_URL="http://www.limitland.de/downloads/comixcursors/$TARBALL"
    1.20 -TAGS="cursor-theme"
    1.21 +WGET_URL="https://gitlab.com/limitland/comixcursors/repository/${COMMIT:-$VERSION}/archive.tar.bz2"
    1.22  
    1.23 -DEPENDS="xorg-libXcursor"
    1.24 -BUILD_DEPENDS=""
    1.25 +BUILD_DEPENDS="bc rsvg-convert coreutils-numeric xorg-xcursorgen symlinks"
    1.26 +SPLIT="xcursor-comix-opaque-white xcursor-comix"
    1.27  
    1.28 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 -genpkg_rules()
    1.30 -{
    1.31 -	mkdir -p $fs/usr/share/icons
    1.32 -	cp -a $src/* $fs/usr/share/icons
    1.33 +compile_rules() {
    1.34 +	export MULTISIZE=true
    1.35 +	export ICONSDIR=$install/usr/share/icons
    1.36 +	./install-all
    1.37 +	. $stuff/symdup.sh
    1.38  }
    1.39 +
    1.40 +genpkg_rules() {
    1.41 +	case $PACKAGE in
    1.42 +		xcursor-comix-opaque-white)
    1.43 +			copy ComixCursors-Opaque-White/
    1.44 +			CAT="customization|opaque white set only"
    1.45 +			;;
    1.46 +		xcursor-comix)
    1.47 +			copy @std
    1.48 +			remove_already_packed
    1.49 +			;;
    1.50 +	esac
    1.51 +	DEPENDS="xorg-libXcursor"
    1.52 +	TAGS="cursor-theme"
    1.53 +}