wok annotate slitaz-configs/receipt @ rev 14908

slitaz-i18n: rewrite locale-pack.functions; slitaz-configs: now generate openbox desktop menu using po files; locale-*: update using new locale-pack.functions (FIXME: post_remove)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Aug 03 17:37:48 2013 +0300 (2013-08-03)
parents 727f65a6191b
children b042fcb86c79
rev   line source
pankso@274 1 # SliTaz package receipt.
pankso@274 2
pankso@274 3 PACKAGE="slitaz-configs"
al@14908 4 VERSION="5.1.6"
pankso@274 5 CATEGORY="base-system"
pankso@12411 6 SHORT_DESC="SliTaz config files and artwork."
pankso@274 7 MAINTAINER="pankso@slitaz.org"
al@14803 8 LICENSE="GPL"
pankso@274 9 WEB_SITE="http://www.slitaz.org/"
pascal@14355 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14758 11 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz"
slaxemulator@13650 12 CONFIG_FILES="/etc/slitaz/applications.conf"
pankso@274 13
pankso@12161 14 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage xorg-xcompmgr \
pankso@12411 15 transset-df ttf-dejavu slitaz-tools-boxes clearlooks slim"
pankso@12161 16
al@14908 17 # Rules to configure and make the package.
al@14908 18 compile_rules()
al@14908 19 {
al@14908 20 make DESTDIR=$DESTDIR menu
al@14908 21 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
al@14908 22 }
al@14908 23
pankso@274 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@274 25 genpkg_rules()
al@14803 26 {
pankso@3090 27 # Copy rootfs files from the stuff and set permissions.
pankso@12411 28 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
al@14908 29 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
al@14908 30
pankso@12411 31 # /usr/share
pankso@12411 32 for i in applications lxdm slim slitaz
pankso@12411 33 do
pankso@12411 34 cp -r $src/rootfs/usr/share/$i $fs/usr/share
pankso@12411 35 done
al@14908 36
slaxemulator@13650 37 cp -a $src/rootfs/usr/bin $fs/usr
pankso@9505 38 cp -a $src/rootfs/etc/lxpanel $fs/etc
slaxemulator@13650 39 cp -a $src/rootfs/etc/slitaz $fs/etc
al@14908 40
pankso@715 41 chown -R root.root $fs
pankso@274 42 }
pankso@2838 43
pankso@2838 44 post_install()
pankso@2838 45 {
pankso@2838 46 # By default slim provide a base theme and config file have both
pankso@2838 47 # base and slitaz who will be choose randomly, so make sure we use
pankso@2838 48 # only slitaz theme.
pankso@2838 49 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
pankso@2838 50 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
pankso@2838 51 $1/etc/slim.conf
pankso@2838 52 fi
pankso@2838 53 }