# SliTaz package receipt. PACKAGE="gtk-engines" VERSION="2.20.2" CATEGORY="customization" SHORT_DESC="All standart GTK+2 engines for themes" MAINTAINER="psychomaniak@xakep.ru" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://linuxfromscratch.org/blfs/view/svn/x/gtk-engines.html" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" DEPENDS="gtk+ xorg-libXdamage" BUILD_DEPENDS="pkg-config file gtk+-dev" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs && rm -rf $fs/usr/share/locale rm $fs/usr/lib/gtk-2.0/2.10.0/engines/*.la cd $fs/usr/share/$PACKAGE ; sed -i '/lang/d' * # This clearlooks is 5(!) years newer (+~100Kb) # but there are bugs with default slitaz gtk themes find $fs -regex '.*\(clearlooks\|Clearlooks\).*' \ -exec ls -l {} \; -delete }