wok-6.x annotate slitaz-configs/receipt @ rev 23388
updated perl-proc-processtable (0.45 -> 0.59)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 16:27:39 2020 +0100 (2020-03-31) |
parents | 2daa5a09db14 |
children | b6120eeb6704 |
rev | line source |
---|---|
pankso@274 | 1 # SliTaz package receipt. |
pankso@274 | 2 |
pankso@274 | 3 PACKAGE="slitaz-configs" |
pascal@22423 | 4 VERSION="317" |
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@19620 | 16 BUILD_DEPENDS="" # see below |
al@19617 | 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 |
al@19620 | 27 i?86*) BUILD_DEPENDS="gettext locale-fr locale-hu locale-ja locale-pt_BR \ |
al@19620 | 28 locale-ru locale-zh_CN" ;; |
pankso@16566 | 29 esac |
pankso@16566 | 30 |
al@14908 | 31 # Rules to configure and make the package. |
al@14908 | 32 compile_rules() |
al@14908 | 33 { |
pankso@16167 | 34 case "$ARCH" in |
pankso@16167 | 35 i?86) |
pankso@16167 | 36 make DESTDIR=$DESTDIR menu |
al@19620 | 37 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml |
al@19620 | 38 ;; |
pankso@16167 | 39 esac |
al@14908 | 40 } |
al@14908 | 41 |
pankso@274 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@274 | 43 genpkg_rules() |
al@14803 | 44 { |
pankso@16167 | 45 cd ${src} |
pankso@16167 | 46 case "$ARCH" in |
pankso@16167 | 47 i?86) |
pankso@16167 | 48 # Copy rootfs files from the stuff and set permissions. |
pankso@16167 | 49 mkdir -p $fs/etc/xdg/openbox $fs/usr/share |
pankso@16167 | 50 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg |
pankso@16167 | 51 |
pankso@16167 | 52 # /usr/share |
pankso@16167 | 53 for i in applications lxdm slim slitaz |
pankso@16167 | 54 do |
pankso@16167 | 55 cp -r $src/rootfs/usr/share/$i $fs/usr/share |
pankso@16167 | 56 done |
pankso@16167 | 57 cp -a $src/rootfs/usr/bin $fs/usr |
pankso@16167 | 58 cp -a $src/rootfs/etc/lxpanel $fs/etc |
pankso@16167 | 59 cp -a $src/rootfs/etc/slitaz $fs/etc |
pankso@16421 | 60 cp -a $install/etc/xdg/openbox/menu.en.xml \ |
pankso@16421 | 61 $install/etc/xdg/openbox/menu.xml \ |
pankso@16167 | 62 $fs/etc/xdg/openbox ;; |
pankso@16167 | 63 arm) |
pankso@16421 | 64 mkdir -p $fs/usr/share |
pankso@16421 | 65 cp -a $src/rootfs/usr/share/applications $fs/usr/share |
pankso@16421 | 66 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share ;; |
pankso@16167 | 67 esac |
al@18612 | 68 |
al@18612 | 69 # Put LXPanel profile to /etc/skel for new users |
al@18612 | 70 mkdir -p $fs/etc/skel/.config/lxpanel |
al@18612 | 71 cp -a $fs/etc/lxpanel/slitaz $fs/etc/skel/.config/lxpanel |
al@18612 | 72 |
pankso@715 | 73 chown -R root.root $fs |
pankso@274 | 74 } |
pankso@2838 | 75 |
pankso@2838 | 76 post_install() |
pankso@2838 | 77 { |
pankso@16167 | 78 case "$SLITAZ_ARCH" in |
pankso@16167 | 79 i?86) |
pankso@16167 | 80 # By default slim provide a base theme and config file have both |
pankso@16167 | 81 # base and slitaz who will be choose randomly, so make sure we use |
pankso@16167 | 82 # only slitaz theme. |
pascal@18730 | 83 if grep -q 'current_theme slitaz,base' "$1/etc/slim.conf"; then |
pankso@16167 | 84 sed -i s/"current_theme .*"/"current_theme slitaz"/ \ |
pascal@18730 | 85 "$1/etc/slim.conf" |
pankso@16167 | 86 fi ;; |
pankso@16167 | 87 esac |
pankso@2838 | 88 } |