wok-next annotate slitaz-configs/receipt @ rev 20738

Up scons (3.0.1); add scons2 (2.5.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 21:13:51 2018 +0300 (2018-05-29)
parents c4e53a39395a
children cd7906120828
rev   line source
al@19856 1 # SliTaz package receipt v2.
pankso@274 2
pankso@274 3 PACKAGE="slitaz-configs"
al@19868 4 VERSION="312"
pankso@274 5 CATEGORY="base-system"
al@19856 6 SHORT_DESC="SliTaz config files"
pankso@274 7 MAINTAINER="pankso@slitaz.org"
pascal@15021 8 LICENSE="GPL3"
pankso@274 9 WEB_SITE="http://www.slitaz.org/"
al@19588 10
al@19588 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19588 12 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.bz2"
pankso@274 13
al@19856 14 BUILD_DEPENDS_arm="gettext"
al@19868 15 BUILD_DEPENDS="locale-de locale-en locale-fr locale-hu locale-ja locale-pt_BR \
al@19868 16 locale-ru locale-zh_CN gettext"
al@19856 17 SPLIT="slitaz-themes slitaz-configs-base"
pankso@16566 18
al@20491 19 compile_rules() {
al@20491 20 # xcompmgr produces visual glitches on the screen
al@20491 21 sed -i 's|xcompmgr|compton|' ob-menu/menu.xml.in
al@20491 22 make DESTDIR=$DESTDIR menu
al@20491 23 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
al@20491 24
al@19868 25 find /usr/share/locale -type f -name 'slitaz*'
al@19856 26
al@19856 27 cp -a $src/rootfs/* $install
al@19856 28
al@19856 29 # Put applications.conf to /etc/skel
al@19856 30 mkdir -p $install/etc/skel/.config/slitaz/
al@19856 31 cp -a $install/etc/slitaz/applications.conf $install/etc/skel/.config/slitaz/
al@19856 32
al@19868 33 cd $install/etc/skel
al@19868 34 mkdir -p Desktop Documents Downloads Images Music Public Templates Videos
al@19856 35
al@19868 36 # actually isolinux splash is png
al@19868 37 mv $install/boot/isolinux/splash.jpg $install/boot/isolinux/splash.png
al@19856 38
al@19868 39 # LXPanel settings are in lxpanel package
al@19868 40 rm -r $install/etc/lxpanel
al@19868 41
al@19868 42 # Polkit *.pkla files are not working anymore,
al@19868 43 # Polkit switches to javascript-based rules
al@19868 44 rm -r $install/etc/polkit-1
al@19868 45
al@19868 46 # LXsession settings are in lxsession package
al@19868 47 rm -r $install/etc/skel/.config/lxsession
al@19868 48
al@19868 49 # Beaver is gone...
al@19868 50 sed -i 's|beaver|leafpad|' $install/usr/share/applications/defaults.list
al@19868 51
al@19868 52 # SliTaz backgrounds in the slitaz-next package
al@19868 53 rm $install/usr/share/images/slitaz-background*
al@19868 54
al@19868 55 # SLiM theme in the slim package
al@19868 56 rm -r $install/usr/share/slim
al@19868 57
al@19868 58 # PCManFM settings in the pcmanfm package
al@19868 59 rm -r $install/usr/share/slitaz/lxde
al@19868 60
al@19868 61 # Remove templates, use that in /usr/share/templates/ only
al@19856 62 rm $install/etc/skel/Templates/*
al@19856 63
al@19880 64 # Now we need ConsoleKit
al@19880 65 sed -i 's|exec dbus-launch|exec ck-launch-session dbus-launch|' $install/etc/skel/.xinitrc
al@19880 66
al@19880 67 # Enable colored terminal prompt by default
al@19880 68 sed -i '/PS1.*m/ s|#PS1=|PS1=|' $install/etc/skel/.profile
al@19856 69 chown -R root:root $install
al@14908 70 }
al@14908 71
al@20491 72 genpkg_rules() {
al@19856 73 case $PACKAGE in
al@19856 74 slitaz-configs)
al@19856 75 # Special case for ARM since some (most) config files are in slitaz-arm repo.
al@19856 76 # i486/arm common configs are provided by slitaz-configs-base.
al@19856 77 case "$ARCH" in
al@20491 78 arm*)
al@20491 79 copy \
al@20491 80 /usr/share/applications/ \
al@20491 81 /usr/share/slitaz/
al@20491 82 DEPENDS="slitaz-arm-configs ttf-dejavu slim"
al@20491 83 ;;
al@20491 84 *)
al@19856 85 copy \
al@19856 86 /etc/skel/.gtkrc-2.0* \
al@19856 87 /etc/skel/.icons/ \
al@19856 88 /etc/skel/.Xdefaults \
al@19856 89 /etc/skel/.xinitrc \
al@19856 90 /etc/skel/.Xresources \
al@19856 91 /etc/skel/.xsession \
al@19856 92 /etc/xdg/openbox/autostart \
al@19856 93 /etc/xdg/openbox/environment \
al@19856 94 /etc/xdg/openbox/menu.en.xml \
al@19856 95 /etc/xdg/openbox/menu.xml \
al@19856 96 /etc/xdg/openbox/rc.xml \
al@19856 97 /usr/bin/ \
al@19856 98 /usr/share/applications/ \
al@19856 99 /usr/share/images/ \
al@19856 100 /usr/share/pixmaps/ \
al@19856 101 /usr/share/slitaz/ \
al@19856 102 /usr/share/templates/ \
al@19856 103 /usr/share/webhome/ \
al@19856 104 /root/
al@19856 105 DEPENDS="slitaz-configs-base xorg-libXcomposite \
al@19880 106 xorg-libXdamage transset-df ttf-dejavu slim compton"
al@19856 107 ;;
al@19856 108 esac
al@19856 109
al@19856 110 CAT="base-system|for GUI systems"
al@19588 111 ;;
al@19856 112 slitaz-themes)
al@20317 113 copy \
al@20317 114 /usr/share/themes/SliTaz*/ \
al@20317 115 /usr/share/slim/ \
al@20317 116 /usr/share/lxdm/
al@19856 117 CAT="customization|GTK+2, Openbox3, LXDM and SLiM themes"
al@19856 118 DEPENDS="slim"
al@19588 119 ;;
al@19856 120 slitaz-configs-base)
al@19856 121 CAT="base-system|for text based systems"
al@18612 122
al@19856 123 # Copy rootfs files and set permissions.
al@19856 124 case "$ARCH" in
al@19856 125 arm*)
al@19856 126 # Most ARM configs are in slitaz-arm repo but Openbox, webhome
al@19856 127 # are common to all arch.
al@19856 128 copy \
al@19856 129 /usr/bin/ \
al@19856 130 /etc/lxpanel/ \
al@19856 131 /etc/skel/
al@19856 132 # No dbus on ARM
al@19856 133 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc
al@19856 134 ;;
al@19856 135 *)
al@19856 136 copy \
al@19856 137 /boot/ \
al@19856 138 /etc/skel/ \
al@19856 139 /etc/polkit-1/ \
al@19856 140 /etc/slitaz/
al@19856 141 CONFIG_FILES="/etc/slitaz/applications.conf"
al@19856 142 ;;
al@19856 143 esac
al@19856 144 copy \
al@19856 145 /usr/share/ \
al@20317 146 /root/ \
al@20317 147 @rm
al@18612 148
al@20317 149 DEPENDS=" "
al@19856 150 # Handle SliTaz arch
al@19856 151 case "$SLITAZ_ARCH" in
al@20317 152 arm*) DEPENDS=" " ;;
al@19856 153 esac
al@19588 154 ;;
pankso@16167 155 esac
pankso@2838 156 }
al@19856 157
al@19856 158 # By default SLiM provide a base theme and config file have both
al@19856 159 # base and slitaz who will be choose randomly, so make sure we use
al@19856 160 # only slitaz theme.
al@19856 161 post_install_slitaz_themes() {
al@19856 162 chroot "$1/" slim-theme -s slitaz
al@19856 163 }
al@19856 164 pre_remove_slitaz_themes() {
al@19856 165 chroot "$1/" slim-theme -f slitaz
al@19856 166 }
al@19856 167
al@19858 168 post_install_slitaz_configs() {
al@19856 169 for i in $(ls -d "$1/root" "$1"/home/* 2>/dev/null); do
al@19856 170 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
al@19856 171 done
al@19856 172 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
al@19856 173 chmod 0750 $1/root
al@19856 174 }