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

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents 5669e8b3be70
children
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"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15021 8 LICENSE="GPL3"
pankso@274 9 WEB_SITE="http://www.slitaz.org/"
al@21082 10 HOST_ARCH="any"
al@20888 11 REPOLOGY="-"
al@19588 12
al@19588 13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19588 14 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.bz2"
pankso@274 15
al@19868 16 BUILD_DEPENDS="locale-de locale-en locale-fr locale-hu locale-ja locale-pt_BR \
al@21020 17 locale-ru locale-zh_CN gettext-dev"
al@21020 18 SPLIT="slitaz-themes $PACKAGE-base"
pankso@16566 19
al@20491 20 compile_rules() {
al@20491 21 # xcompmgr produces visual glitches on the screen
al@20491 22 sed -i 's|xcompmgr|compton|' ob-menu/menu.xml.in
al@21020 23 make DESTDIR=$install menu
al@20491 24 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
al@20491 25
al@19868 26 find /usr/share/locale -type f -name 'slitaz*'
al@19856 27
al@19856 28 cp -a $src/rootfs/* $install
al@19856 29
al@19856 30 # Put applications.conf to /etc/skel
al@19856 31 mkdir -p $install/etc/skel/.config/slitaz/
al@19856 32 cp -a $install/etc/slitaz/applications.conf $install/etc/skel/.config/slitaz/
al@19856 33
al@19868 34 cd $install/etc/skel
al@19868 35 mkdir -p Desktop Documents Downloads Images Music Public Templates Videos
al@19856 36
al@19868 37 # actually isolinux splash is png
al@19868 38 mv $install/boot/isolinux/splash.jpg $install/boot/isolinux/splash.png
al@19856 39
al@19868 40 # LXPanel settings are in lxpanel package
al@19868 41 rm -r $install/etc/lxpanel
al@19868 42
al@19868 43 # Polkit *.pkla files are not working anymore,
al@19868 44 # Polkit switches to javascript-based rules
al@19868 45 rm -r $install/etc/polkit-1
al@19868 46
al@19868 47 # LXsession settings are in lxsession package
al@19868 48 rm -r $install/etc/skel/.config/lxsession
al@19868 49
al@19868 50 # Beaver is gone...
al@19868 51 sed -i 's|beaver|leafpad|' $install/usr/share/applications/defaults.list
al@19868 52
al@19868 53 # SliTaz backgrounds in the slitaz-next package
al@19868 54 rm $install/usr/share/images/slitaz-background*
al@19868 55
al@19868 56 # SLiM theme in the slim package
al@19868 57 rm -r $install/usr/share/slim
al@19868 58
al@19868 59 # PCManFM settings in the pcmanfm package
al@19868 60 rm -r $install/usr/share/slitaz/lxde
al@19868 61
al@19868 62 # Remove templates, use that in /usr/share/templates/ only
al@19856 63 rm $install/etc/skel/Templates/*
al@19856 64
al@19880 65 # Now we need ConsoleKit
al@19880 66 sed -i 's|exec dbus-launch|exec ck-launch-session dbus-launch|' $install/etc/skel/.xinitrc
al@19880 67
al@19880 68 # Enable colored terminal prompt by default
al@19880 69 sed -i '/PS1.*m/ s|#PS1=|PS1=|' $install/etc/skel/.profile
al@19856 70 chown -R root:root $install
al@14908 71 }
al@14908 72
al@20491 73 genpkg_rules() {
al@19856 74 case $PACKAGE in
al@19856 75 slitaz-configs)
al@21020 76 # Common configs are provided by slitaz-configs-base.
al@21020 77 copy \
al@21020 78 /etc/skel/.gtkrc-2.0* \
al@21020 79 /etc/skel/.icons/ \
al@21020 80 /etc/skel/.Xdefaults \
al@21020 81 /etc/skel/.xinitrc \
al@21020 82 /etc/skel/.Xresources \
al@21020 83 /etc/skel/.xsession \
al@21020 84 /etc/xdg/openbox/autostart \
al@21020 85 /etc/xdg/openbox/environment \
al@21020 86 /etc/xdg/openbox/menu.en.xml \
al@21020 87 /etc/xdg/openbox/menu.xml \
al@21020 88 /etc/xdg/openbox/rc.xml \
al@21020 89 /usr/bin/ \
al@21020 90 /usr/share/applications/ \
al@21020 91 /usr/share/images/ \
al@21020 92 /usr/share/pixmaps/ \
al@21020 93 /usr/share/slitaz/ \
al@21020 94 /usr/share/templates/ \
al@21020 95 /usr/share/webhome/ \
al@21020 96 /root/
al@21078 97 DEPENDS="slitaz-configs-base libxcomposite \
al@21078 98 libxdamage transset-df ttf-dejavu slim compton"
al@19856 99 CAT="base-system|for GUI systems"
al@19588 100 ;;
al@19856 101 slitaz-themes)
al@20317 102 copy \
al@20317 103 /usr/share/themes/SliTaz*/ \
al@20317 104 /usr/share/slim/ \
al@20317 105 /usr/share/lxdm/
al@19856 106 CAT="customization|GTK+2, Openbox3, LXDM and SLiM themes"
al@19856 107 DEPENDS="slim"
al@19588 108 ;;
al@19856 109 slitaz-configs-base)
al@19856 110 copy \
al@21020 111 /boot/ \
al@21020 112 /etc/skel/ \
al@21020 113 /etc/polkit-1/ \
al@21020 114 /etc/slitaz/ \
al@19856 115 /usr/share/ \
al@20317 116 /root/ \
al@20317 117 @rm
al@21020 118 CAT="base-system|for text based systems"
al@21020 119 CONFIG_FILES="/etc/slitaz/applications.conf"
al@20317 120 DEPENDS=" "
al@19588 121 ;;
pankso@16167 122 esac
pankso@2838 123 }
al@19856 124
al@19856 125 # By default SLiM provide a base theme and config file have both
al@19856 126 # base and slitaz who will be choose randomly, so make sure we use
al@19856 127 # only slitaz theme.
al@19856 128 post_install_slitaz_themes() {
al@19856 129 chroot "$1/" slim-theme -s slitaz
al@19856 130 }
al@19856 131 pre_remove_slitaz_themes() {
al@19856 132 chroot "$1/" slim-theme -f slitaz
al@19856 133 }
al@19856 134
al@19858 135 post_install_slitaz_configs() {
al@19856 136 for i in $(ls -d "$1/root" "$1"/home/* 2>/dev/null); do
al@19856 137 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
al@19856 138 done
al@19856 139 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
al@19856 140 chmod 0750 $1/root
al@19856 141 }