wok-current rev 14324
enlightenment: fix slim.conf
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Mon Apr 08 08:52:11 2013 +0200 (2013-04-08) |
parents | fa4c426bcf9c |
children | 9c2c99da19ea |
files | enlightenment/receipt |
line diff
1.1 --- a/enlightenment/receipt Sun Apr 07 22:29:26 2013 -0300 1.2 +++ b/enlightenment/receipt Mon Apr 08 08:52:11 2013 +0200 1.3 @@ -10,9 +10,10 @@ 1.4 WGET_URL="http://download.enlightenment.org/releases/$TARBALL" 1.5 TAGS="wm window-manager" 1.6 TAGS="e17" 1.7 +LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW" 1.8 1.9 DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib embryo eio emotion \ 1.10 -eeze xcb-util-keysyms" 1.11 +eeze xcb-util-keysyms slitaz-menus" 1.12 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev 1.13 edbus-dev alsa-lib-dev lua5.1-dev embryo-dev eio-dev emotion-dev eeze-dev \ 1.14 xcb-util-keysyms-dev" 1.15 @@ -50,15 +51,22 @@ 1.16 1.17 # Rm backgrouds (1,6 Mb). 1.18 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* 1.19 + 1.20 + # locales 1.21 + for locale in $LOCALES; do 1.22 + mv $install/usr/share/locale/$locale $fs/usr/share/locale 1.23 + done 1.24 } 1.25 1.26 post_install() 1.27 { 1.28 - res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) 1.29 + res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \ 1.30 + | sed s/,e17//) 1.31 # Adding WM to SLIM available sessions. 1.32 - if ! echo "$res" | grep -q e17; then 1.33 - echo -n "Adding e17 to /etc/slim.conf..." 1.34 - sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf 1.35 + if ! echo "$res" | grep -q enlightenment; then 1.36 + echo -n "Adding enlightenment to /etc/slim.conf..." 1.37 + sed -i "s/^sessions.*/sessions ${res},enlightenment/" \ 1.38 + /etc/slim.conf 1.39 status 1.40 fi 1.41 }