wok-next view paper-gtk-theme/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="paper-gtk-theme"
4 VERSION="1.1"
5 COMMIT="02973b6"
6 CATEGORY="customization"
7 SHORT_DESC="Modern desktop theme suite"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="GPL3"
10 WEB_SITE="https://snwh.org/paper"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/snwh/paper-gtk-theme/archive/$COMMIT.tar.gz"
15 BUILD_DEPENDS="autoconf automake"
16 SPLIT="$PACKAGE-extra"
18 compile_rules() {
19 chmod a+x autogen.sh
20 ./autogen.sh &&
21 make &&
22 make install || return 1
24 # Define small icons is 16x16
25 sed -i '20 i\
26 gtk-icon-sizes="gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:panel-menu=16,16:gtk-button=16,16"' \
27 $install/usr/share/themes/Paper/gtk-2.0/gtkrc
29 # Fix GTK+3 deprecations
30 for i in $(find $install -type f); do
31 sed -i "s|:insensitive|:disabled|g;
32 s|:inconsistent|:indeterminate|g" $i
33 done
35 # Restore "classic" tabs
36 cp -f $stuff/Tabs/*.png $install/usr/share/themes/Paper/gtk-2.0/Tabs/
38 # Make pressed buttons be different with non-pressed
39 cp -f $stuff/Buttons/*.png $install/usr/share/themes/Paper/gtk-2.0/Buttons/
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 paper-gtk-theme)
45 copy gtk-*/ index.theme
46 CAT="customization|GTK+2 and GTK+3 theme"
47 DEPENDS="gtk2-engine-murrine"
48 ;;
49 *-extra)
50 copy @std @rm
51 CAT="customization|extra files"
52 ;;
53 esac
54 }