wok-next diff gtk-engines/receipt @ rev 20030

Up flam3 (3.1.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 22 15:52:59 2017 +0200 (2017-10-22)
parents 40fab26c175d
children d43bf7aae921
line diff
     1.1 --- a/gtk-engines/receipt	Mon May 09 21:59:10 2016 +0300
     1.2 +++ b/gtk-engines/receipt	Sun Oct 22 15:52:59 2017 +0200
     1.3 @@ -1,33 +1,43 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="gtk-engines"
     1.8  VERSION="2.20.2"
     1.9  CATEGORY="customization"
    1.10 -SHORT_DESC="All standart GTK+2 engines for themes"
    1.11 +SHORT_DESC="Standard GTK+2 theme engines"
    1.12  MAINTAINER="psychomaniak@xakep.ru"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://linuxfromscratch.org/blfs/view/svn/x/gtk-engines.html"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WEB_SITE="http://linuxfromscratch.org/blfs/view/svn/x/gtk-engines.html"
    1.18  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
    1.19  
    1.20 -DEPENDS="gtk+ xorg-libXdamage"
    1.21 -BUILD_DEPENDS="pkg-config file gtk+-dev"
    1.22 +BUILD_DEPENDS="file gtk+-dev intltool"
    1.23 +SPLIT="gtk-clearlooks gtk-engines gtk-engines-dev"
    1.24  
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 -	./configure && make && make install
    1.29 +	./configure $CONFIGURE_ARGS && make && make install
    1.30  }
    1.31  
    1.32  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.33  genpkg_rules()
    1.34  {
    1.35 -	cp -a $install/* $fs && rm -rf $fs/usr/share/locale
    1.36 -	rm $fs/usr/lib/gtk-2.0/2.10.0/engines/*.la
    1.37 -	cd $fs/usr/share/$PACKAGE ; sed -i '/lang/d' *
    1.38 -	
    1.39 -	# This clearlooks is 5(!) years newer (+~100Kb)
    1.40 -	# but there are bugs with default slitaz gtk themes
    1.41 -	find $fs -regex '.*\(clearlooks\|Clearlooks\).*' \
    1.42 -	-exec ls -l {} \; -delete
    1.43 +	case $PACKAGE in
    1.44 +		gtk-clearlooks)
    1.45 +			copy libclearlooks.so Clearlooks/ clearlooks.xml
    1.46 +			sed -i '/xml:lang=/d' $fs/usr/share/gtk-engines/*.xml
    1.47 +			CAT="x-window|default gtk-engine, with ajustable colors"
    1.48 +			DEPENDS="gtk+"
    1.49 +			;;
    1.50 +		gtk-engines)
    1.51 +			copy @std
    1.52 +			remove_already_packed
    1.53 +			sed -i '/xml:lang=/d' $fs/usr/share/gtk-engines/*.xml
    1.54 +			DEPENDS="gtk+ xorg-libXdamage"
    1.55 +			;;
    1.56 +		*-dev)
    1.57 +			copy @dev
    1.58 +			;;
    1.59 +	esac
    1.60  }