wok-next diff slim-theme-7legs/receipt @ rev 20533

cairo-clock, grub4dos: fix CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 27 12:50:45 2018 +0200 (2018-03-27)
parents 0a411c8beacd
children e7e7475e84c9
line diff
     1.1 --- a/slim-theme-7legs/receipt	Thu Jun 02 02:41:24 2016 +0300
     1.2 +++ b/slim-theme-7legs/receipt	Tue Mar 27 12:50:45 2018 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="slim-theme-7legs"
     1.8  VERSION="20130527"
     1.9 @@ -8,35 +8,31 @@
    1.10  LICENSE="CC-BY"
    1.11  WEB_SITE="http://www.slitaz.org/"
    1.12  
    1.13 -DEPENDS="slim slitaz-configs-base"
    1.14 -BUILD_DEPENDS="inkscape optipng"
    1.15 +BUILD_DEPENDS="rsvg-convert"
    1.16 +COOKOPTS="!pngquant"
    1.17  
    1.18 -# Rules to configure and make the package.
    1.19 -compile_rules()
    1.20 -{
    1.21 -	mkdir -p $install
    1.22 -	inkscape -f $stuff/7_legged_spider.svg -e $install/panel.png
    1.23 -	optipng -zc1-9 -zm1-9 -zs0-3 -f0-5 $install/panel.png
    1.24 +compile_rules() {
    1.25 +	theme="$install/usr/share/slim/themes/7_legged_spider"
    1.26 +	mkdir -p $theme
    1.27 +
    1.28 +	# convert vector art to bitmap
    1.29 +	rsvg-convert $stuff/7_legged_spider.svg -o $theme/panel.png
    1.30 +
    1.31 +	# link SLiM background to SliTaz desktop background; system is almost here...
    1.32 +	cp -s /usr/share/images/slitaz-background.jpg $theme/background.jpg
    1.33 +
    1.34 +	cp $stuff/slim.theme $theme
    1.35  }
    1.36  
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 -	theme=$fs/usr/share/slim/themes/7_legged_spider
    1.41 -	mkdir -p $theme
    1.42 -	# link SLiM background to SliTaz desktop background;
    1.43 -	# system is almost here...
    1.44 -	cp -s /usr/share/images/slitaz-background.jpg $theme/background.jpg
    1.45 -	cp -a $install/panel.png $theme
    1.46 -	cp -a $stuff/slim.theme $theme
    1.47 +genpkg_rules() {
    1.48 +	copy @std
    1.49 +	DEPENDS="slim slitaz-configs-base"
    1.50  }
    1.51  
    1.52 -post_install()
    1.53 -{
    1.54 +post_install() {
    1.55  	chroot "$1/" slim-theme -s7_legged_spider
    1.56  }
    1.57  
    1.58 -pre_remove()
    1.59 -{
    1.60 +pre_remove() {
    1.61  	chroot "$1/" slim-theme -f7_legged_spider
    1.62  }