wok-current annotate openbox-theme-blinder/receipt @ rev 18987
Additional themes for Slitaz GNU/Linux.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Thu Mar 17 05:14:19 2016 -0300 (2016-03-17) |
parents | |
children | 15e6c6910ee3 |
rev | line source |
---|---|
al@18899 | 1 # SliTaz package receipt. |
al@18899 | 2 |
al@18899 | 3 PACKAGE="openbox-theme-blinder" |
al@18899 | 4 VERSION="20150606" |
al@18899 | 5 CATEGORY="x-window" |
al@18899 | 6 SHORT_DESC="Blinder - theme for Openbox 3" |
al@18899 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@18899 | 8 LICENSE="PublicDomain" |
al@18899 | 9 WEB_SITE="http://desktopstylish.tumblr.com/post/120897023300/blinder-the-openbox-3-theme-download" |
al@18899 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@18899 | 11 WGET_URL="https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlQURSR3V5dzB4aXc" |
al@18899 | 12 TAGS="hackdorte openbox" |
al@18899 | 13 |
al@18899 | 14 DEPENDS="openbox" |
al@18899 | 15 BUILD_DEPENDS="" |
al@18899 | 16 |
al@18899 | 17 # Rules to configure and make the package. |
al@18899 | 18 compile_rules() |
al@18899 | 19 { |
al@18899 | 20 mkdir -p $install/usr/share/themes/Blinder |
al@18899 | 21 cp -a $src/* $install/usr/share/themes/Blinder |
al@18899 | 22 chown -R root:root $install |
al@18899 | 23 } |
al@18899 | 24 |
al@18899 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18899 | 26 genpkg_rules() |
al@18899 | 27 { |
al@18899 | 28 cp -a $install/* $fs |
al@18899 | 29 } |
al@18899 | 30 |
al@18899 | 31 post_install() |
al@18899 | 32 { |
al@18899 | 33 # Set Openbox theme |
al@18899 | 34 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do |
al@18899 | 35 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Blinder<|' $i |
al@18899 | 36 done |
al@18899 | 37 pgrep openbox >/dev/null && openbox --reconfigure |
al@18899 | 38 } |
al@18899 | 39 |
al@18899 | 40 pre_remove() |
al@18899 | 41 { |
al@18899 | 42 # Restore Openbox theme (SliTaz) |
al@18899 | 43 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do |
al@18899 | 44 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i |
al@18899 | 45 done |
al@18899 | 46 pgrep openbox >/dev/null && openbox --reconfigure |
al@18899 | 47 } |