wok annotate slitaz-configs/receipt @ rev 16558

Up: slitaz-configs (5.5) Include polkit config file
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 01 08:57:14 2014 +0200 (2014-05-01)
parents 3559b905c849
children 5dd63acec41c
rev   line source
pankso@274 1 # SliTaz package receipt.
pankso@274 2
pankso@274 3 PACKAGE="slitaz-configs"
pankso@16558 4 VERSION="5.5"
pankso@274 5 CATEGORY="base-system"
pankso@12411 6 SHORT_DESC="SliTaz config files and artwork."
pankso@274 7 MAINTAINER="pankso@slitaz.org"
pascal@15021 8 LICENSE="GPL3"
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"
pankso@16167 12 HOST_ARCH="i486 arm"
pankso@274 13
pankso@16374 14 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage \
pankso@16374 15 xorg-xcompmgr transset-df ttf-dejavu slim"
al@16543 16 BUILD_DEPENDS="locale-fr locale-pt_BR locale-ru"
pankso@12161 17
pankso@16167 18 # Special case for ARM since some (most) config files are in slitaz-arm repo.
pankso@16167 19 # i486/arm common configs are provided by slitaz-configs-base.
pankso@16167 20 case "$SLITAZ_ARCH" in
pankso@16421 21 i?86) CONFIG_FILES="/etc/slitaz/applications.conf" ;;
pankso@16423 22 arm*) DEPENDS="slitaz-arm-configs ttf-dejavu slim" ;;
pankso@16167 23 esac
pankso@16167 24
al@14908 25 # Rules to configure and make the package.
al@14908 26 compile_rules()
al@14908 27 {
pankso@16167 28 case "$ARCH" in
pankso@16167 29 i?86)
pankso@16167 30 make DESTDIR=$DESTDIR menu
pankso@16167 31 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;;
pankso@16167 32 esac
al@14908 33 }
al@14908 34
pankso@274 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@274 36 genpkg_rules()
al@14803 37 {
pankso@16167 38 cd ${src}
pankso@16167 39 case "$ARCH" in
pankso@16167 40 i?86)
pankso@16167 41 # Copy rootfs files from the stuff and set permissions.
pankso@16167 42 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
pankso@16167 43 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
pankso@16167 44
pankso@16167 45 # /usr/share
pankso@16167 46 for i in applications lxdm slim slitaz
pankso@16167 47 do
pankso@16167 48 cp -r $src/rootfs/usr/share/$i $fs/usr/share
pankso@16167 49 done
pankso@16167 50 cp -a $src/rootfs/usr/bin $fs/usr
pankso@16167 51 cp -a $src/rootfs/etc/lxpanel $fs/etc
pankso@16167 52 cp -a $src/rootfs/etc/slitaz $fs/etc
pankso@16421 53 cp -a $install/etc/xdg/openbox/menu.en.xml \
pankso@16421 54 $install/etc/xdg/openbox/menu.xml \
pankso@16167 55 $fs/etc/xdg/openbox ;;
pankso@16167 56 arm)
pankso@16421 57 mkdir -p $fs/usr/share
pankso@16421 58 cp -a $src/rootfs/usr/share/applications $fs/usr/share
pankso@16421 59 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share ;;
pankso@16167 60 esac
pankso@715 61 chown -R root.root $fs
pankso@274 62 }
pankso@2838 63
pankso@2838 64 post_install()
pankso@2838 65 {
pankso@16167 66 case "$SLITAZ_ARCH" in
pankso@16167 67 i?86)
pankso@16167 68 # By default slim provide a base theme and config file have both
pankso@16167 69 # base and slitaz who will be choose randomly, so make sure we use
pankso@16167 70 # only slitaz theme.
pankso@16167 71 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
pankso@16167 72 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
pankso@16167 73 $1/etc/slim.conf
pankso@16167 74 fi ;;
pankso@16167 75 esac
pankso@2838 76 }