wok-next annotate slitaz-configs/receipt @ rev 19662
Remove tazchroot (not used for yearsand unusable)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 16 18:37:27 2017 +0100 (2017-03-16) |
parents | 31964b29e8cc |
children | 2e9df1b30cc2 |
rev | line source |
---|---|
pankso@274 | 1 # SliTaz package receipt. |
pankso@274 | 2 |
pankso@274 | 3 PACKAGE="slitaz-configs" |
al@19588 | 4 VERSION="300" |
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/" |
pankso@16167 | 10 HOST_ARCH="i486 arm" |
al@19588 | 11 |
al@19588 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@19588 | 13 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.bz2" |
pankso@274 | 14 |
pankso@16374 | 15 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage \ |
pankso@16374 | 16 xorg-xcompmgr transset-df ttf-dejavu slim" |
al@19588 | 17 SIBLINGS="slitaz-configs-base" |
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@16421 | 22 i?86) CONFIG_FILES="/etc/slitaz/applications.conf" ;; |
pankso@16423 | 23 arm*) DEPENDS="slitaz-arm-configs ttf-dejavu slim" ;; |
pankso@16167 | 24 esac |
pankso@16167 | 25 |
pankso@16566 | 26 case "$ARCH" in |
pankso@16566 | 27 i?86*) BUILD_DEPENDS="locale-fr locale-pt_BR locale-ru" ;; |
pankso@16566 | 28 esac |
pankso@16566 | 29 |
al@14908 | 30 # Rules to configure and make the package. |
al@14908 | 31 compile_rules() |
al@14908 | 32 { |
pankso@16167 | 33 case "$ARCH" in |
pankso@16167 | 34 i?86) |
pankso@16167 | 35 make DESTDIR=$DESTDIR menu |
al@19588 | 36 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml |
al@19588 | 37 ;; |
pankso@16167 | 38 esac |
al@14908 | 39 } |
al@14908 | 40 |
pankso@274 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@274 | 42 genpkg_rules() |
al@14803 | 43 { |
pankso@16167 | 44 case "$ARCH" in |
pankso@16167 | 45 i?86) |
al@19588 | 46 # Copy rootfs files from the stuff |
pankso@16167 | 47 mkdir -p $fs/etc/xdg/openbox $fs/usr/share |
pankso@16167 | 48 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg |
pankso@16167 | 49 |
pankso@16167 | 50 # /usr/share |
al@19588 | 51 for i in applications lxdm slim slitaz; do |
pankso@16167 | 52 cp -r $src/rootfs/usr/share/$i $fs/usr/share |
pankso@16167 | 53 done |
al@19588 | 54 cp -a $src/rootfs/usr/bin $fs/usr |
pankso@16167 | 55 cp -a $src/rootfs/etc/lxpanel $fs/etc |
al@19588 | 56 cp -a $src/rootfs/etc/slitaz $fs/etc |
pankso@16421 | 57 cp -a $install/etc/xdg/openbox/menu.en.xml \ |
pankso@16421 | 58 $install/etc/xdg/openbox/menu.xml \ |
al@19588 | 59 $fs/etc/xdg/openbox |
al@19588 | 60 ;; |
pankso@16167 | 61 arm) |
pankso@16421 | 62 mkdir -p $fs/usr/share |
pankso@16421 | 63 cp -a $src/rootfs/usr/share/applications $fs/usr/share |
al@19588 | 64 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share |
al@19588 | 65 ;; |
pankso@16167 | 66 esac |
al@18612 | 67 |
al@18612 | 68 # Put LXPanel profile to /etc/skel for new users |
al@18612 | 69 mkdir -p $fs/etc/skel/.config/lxpanel |
al@18612 | 70 cp -a $fs/etc/lxpanel/slitaz $fs/etc/skel/.config/lxpanel |
al@18612 | 71 |
pankso@715 | 72 chown -R root.root $fs |
pankso@274 | 73 } |
pankso@2838 | 74 |
pankso@2838 | 75 post_install() |
pankso@2838 | 76 { |
pankso@16167 | 77 case "$SLITAZ_ARCH" in |
pankso@16167 | 78 i?86) |
al@19588 | 79 # By default SLiM provide a base theme and config file have both |
pankso@16167 | 80 # base and slitaz who will be choose randomly, so make sure we use |
pankso@16167 | 81 # only slitaz theme. |
pascal@18730 | 82 if grep -q 'current_theme slitaz,base' "$1/etc/slim.conf"; then |
pankso@16167 | 83 sed -i s/"current_theme .*"/"current_theme slitaz"/ \ |
pascal@18730 | 84 "$1/etc/slim.conf" |
al@19588 | 85 fi |
al@19588 | 86 ;; |
pankso@16167 | 87 esac |
pankso@2838 | 88 } |