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