wok annotate slitaz-configs/receipt @ rev 16374

Up: slitaz-configs (5.4) Getting ready for 5.0-RC1
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 14 19:59:46 2014 +0200 (2014-04-14)
parents 37ab4393a6c7
children 9500b841a596
rev   line source
pankso@274 1 # SliTaz package receipt.
pankso@274 2
pankso@274 3 PACKAGE="slitaz-configs"
pankso@16374 4 VERSION="5.4"
pankso@16374 5 ARM_VERS="0.3"
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@16374 16 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage \
pankso@16374 17 xorg-xcompmgr 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@16348 25 DEPENDS="slitaz-configs-base ttf-dejavu slim"
pankso@16348 26 CONFIG_FILES="/etc/slitaz/applications.conf /etc/rcS.conf" ;;
pankso@16167 27 esac
pankso@16167 28
pankso@16167 29 case "$ARCH" in
pankso@16167 30 arm*)
pankso@16345 31 VERSION="$ARM_VERS"
pankso@16167 32 WEB_SITE="http://arm.slitaz.org/"
pankso@16167 33 TARBALL="$PACKAGE-arm-$VERSION.tar.bz2"
pankso@16167 34 WGET_URL="http://hg.slitaz.org/slitaz-arm/archive/tip.tar.bz2" ;;
pankso@16167 35 esac
pankso@16167 36
al@14908 37 # Rules to configure and make the package.
al@14908 38 compile_rules()
al@14908 39 {
pankso@16167 40 case "$ARCH" in
pankso@16167 41 i?86)
pankso@16167 42 make DESTDIR=$DESTDIR menu
pankso@16167 43 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;;
pankso@16167 44 esac
al@14908 45 }
al@14908 46
pankso@274 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@274 48 genpkg_rules()
al@14803 49 {
pankso@16167 50 cd ${src}
pankso@16167 51 case "$ARCH" in
pankso@16167 52 i?86)
pankso@16167 53 # Copy rootfs files from the stuff and set permissions.
pankso@16167 54 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
pankso@16167 55 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
pankso@16167 56
pankso@16167 57 # /usr/share
pankso@16167 58 for i in applications lxdm slim slitaz
pankso@16167 59 do
pankso@16167 60 cp -r $src/rootfs/usr/share/$i $fs/usr/share
pankso@16167 61 done
pankso@16167 62
pankso@16167 63 cp -a $src/rootfs/usr/bin $fs/usr
pankso@16167 64 cp -a $src/rootfs/etc/lxpanel $fs/etc
pankso@16167 65 cp -a $src/rootfs/etc/slitaz $fs/etc
pankso@16167 66 cp -a $install/etc/xdg/openbox/menu.en.xml $install/etc/xdg/openbox/menu.xml \
pankso@16167 67 $fs/etc/xdg/openbox ;;
pankso@16167 68 arm)
pankso@16167 69 cp -a rootfs/* ${fs} ;;
pankso@16167 70 esac
pankso@715 71 chown -R root.root $fs
pankso@274 72 }
pankso@2838 73
pankso@2838 74 post_install()
pankso@2838 75 {
pankso@16167 76 case "$SLITAZ_ARCH" in
pankso@16167 77 i?86)
pankso@16167 78 # By default slim provide a base theme and config file have both
pankso@16167 79 # base and slitaz who will be choose randomly, so make sure we use
pankso@16167 80 # only slitaz theme.
pankso@16167 81 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
pankso@16167 82 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
pankso@16167 83 $1/etc/slim.conf
pankso@16167 84 fi ;;
pankso@16167 85 esac
pankso@2838 86 }