wok annotate slitaz-configs/receipt @ rev 16345

Up: slitaz-configs (5.3) With new Slitaz Tiny Screen desktop files and tools
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 12 20:04:10 2014 +0200 (2014-04-12)
parents 08a3c649e683
children 37ab4393a6c7
rev   line source
pankso@274 1 # SliTaz package receipt.
pankso@274 2
pankso@274 3 PACKAGE="slitaz-configs"
pankso@16345 4 VERSION="5.3"
pankso@16345 5 ARM_VERS="0.2"
pankso@274 6 CATEGORY="base-system"
pankso@12411 7 SHORT_DESC="SliTaz config files and artwork."
pankso@274 8 MAINTAINER="pankso@slitaz.org"
pascal@15021 9 LICENSE="GPL3"
pankso@274 10 WEB_SITE="http://www.slitaz.org/"
pascal@14355 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14758 12 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz"
slaxemulator@13650 13 CONFIG_FILES="/etc/slitaz/applications.conf"
pankso@16167 14 HOST_ARCH="i486 arm"
pankso@274 15
pankso@12161 16 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage xorg-xcompmgr \
pankso@15745 17 transset-df ttf-dejavu slim"
pankso@12161 18
pankso@16167 19 # Special case for ARM since some (most) config files are in slitaz-arm repo.
pankso@16167 20 # i486/arm common configs are provided by slitaz-configs-base.
pankso@16167 21 case "$SLITAZ_ARCH" in
pankso@16167 22 arm*)
pankso@16345 23 VERSION="$ARM_VERS"
pankso@16167 24 WEB_SITE="http://arm.slitaz.org/"
pankso@16167 25 DEPENDS="slitaz-configs-base ttf-dejavu slim" ;;
pankso@16167 26 esac
pankso@16167 27
pankso@16167 28 case "$ARCH" in
pankso@16167 29 arm*)
pankso@16345 30 VERSION="$ARM_VERS"
pankso@16167 31 WEB_SITE="http://arm.slitaz.org/"
pankso@16167 32 TARBALL="$PACKAGE-arm-$VERSION.tar.bz2"
pankso@16167 33 WGET_URL="http://hg.slitaz.org/slitaz-arm/archive/tip.tar.bz2" ;;
pankso@16167 34 esac
pankso@16167 35
al@14908 36 # Rules to configure and make the package.
al@14908 37 compile_rules()
al@14908 38 {
pankso@16167 39 case "$ARCH" in
pankso@16167 40 i?86)
pankso@16167 41 make DESTDIR=$DESTDIR menu
pankso@16167 42 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;;
pankso@16167 43 esac
al@14908 44 }
al@14908 45
pankso@274 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@274 47 genpkg_rules()
al@14803 48 {
pankso@16167 49 cd ${src}
pankso@16167 50 case "$ARCH" in
pankso@16167 51 i?86)
pankso@16167 52 # Copy rootfs files from the stuff and set permissions.
pankso@16167 53 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
pankso@16167 54 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
pankso@16167 55
pankso@16167 56 # /usr/share
pankso@16167 57 for i in applications lxdm slim slitaz
pankso@16167 58 do
pankso@16167 59 cp -r $src/rootfs/usr/share/$i $fs/usr/share
pankso@16167 60 done
pankso@16167 61
pankso@16167 62 cp -a $src/rootfs/usr/bin $fs/usr
pankso@16167 63 cp -a $src/rootfs/etc/lxpanel $fs/etc
pankso@16167 64 cp -a $src/rootfs/etc/slitaz $fs/etc
pankso@16167 65 cp -a $install/etc/xdg/openbox/menu.en.xml $install/etc/xdg/openbox/menu.xml \
pankso@16167 66 $fs/etc/xdg/openbox ;;
pankso@16167 67 arm)
pankso@16167 68 cp -a rootfs/* ${fs} ;;
pankso@16167 69 esac
pankso@715 70 chown -R root.root $fs
pankso@274 71 }
pankso@2838 72
pankso@2838 73 post_install()
pankso@2838 74 {
pankso@16167 75 case "$SLITAZ_ARCH" in
pankso@16167 76 i?86)
pankso@16167 77 # By default slim provide a base theme and config file have both
pankso@16167 78 # base and slitaz who will be choose randomly, so make sure we use
pankso@16167 79 # only slitaz theme.
pankso@16167 80 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
pankso@16167 81 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
pankso@16167 82 $1/etc/slim.conf
pankso@16167 83 fi ;;
pankso@16167 84 esac
pankso@2838 85 }