wok-6.x annotate openbox-theme-chrommo/receipt @ rev 21756

logsurfer, mypaint: update url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 22 21:11:47 2019 +0200 (2019-06-22)
parents 40fab26c175d
children 77ec99338524
rev   line source
al@18899 1 # SliTaz package receipt.
al@18899 2
al@18899 3 PACKAGE="openbox-theme-chrommo"
al@18899 4 VERSION="20150601"
al@19126 5 CATEGORY="customization"
al@18899 6 SHORT_DESC="Chrommo - theme for Openbox 3"
al@18899 7 MAINTAINER="al.bobylev@gmail.com"
al@18899 8 LICENSE="PublicDomain"
pascal@20693 9 WEB_SITE="https://github.com/SliTaz-official/hackdorte-artwork/tree/master/themes"
al@18899 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@18899 11 WGET_URL="https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlcms4OHBWTVBWMmc"
al@18899 12 TAGS="hackdorte openbox"
al@19114 13 HOST_ARCH="any"
al@18899 14
al@18899 15 DEPENDS="openbox"
al@18899 16 BUILD_DEPENDS=""
al@18899 17
al@18899 18 # Rules to configure and make the package.
al@18899 19 compile_rules()
al@18899 20 {
al@18899 21 mkdir -p $install/usr/share/themes/Chrommo
al@18899 22 cp -a $src/chrommo/* $install/usr/share/themes/Chrommo
al@18899 23 chmod a-x $install/usr/share/themes/Chrommo/openbox-3/themerc
al@18899 24 chown -R root:root $install
al@18899 25 }
al@18899 26
al@18899 27 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18899 28 genpkg_rules()
al@18899 29 {
al@18899 30 cp -a $install/* $fs
al@18899 31 }
al@18899 32
al@18899 33 post_install()
al@18899 34 {
al@18899 35 # Set Openbox theme
pascal@19065 36 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
al@18899 37 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Chrommo<|' $i
al@18899 38 done
pascal@19065 39 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
al@18899 40 }
al@18899 41
al@18899 42 pre_remove()
al@18899 43 {
al@18899 44 # Restore Openbox theme (SliTaz)
pascal@19065 45 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
al@18899 46 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
al@18899 47 done
pascal@19065 48 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
al@18899 49 }