wok view enlightenment/receipt @ rev 14398

Add: evas_generic_loaders
author Dominique Corbex <domcox@slitaz.org>
date Tue Apr 23 17:25:54 2013 +0200 (2013-04-23)
parents 04a81f96cbb1
children e01e3ba825f1
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.17.2.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Enlightenment window manager (E17)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.enlightenment.org/"
10 WGET_URL="http://download.enlightenment.org/releases/$TARBALL"
11 TAGS="wm window-manager"
12 TAGS="e17"
13 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
15 DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib embryo eio emotion \
16 eeze xcb-util-keysyms slitaz-menus"
17 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev
18 edbus-dev alsa-lib-dev lua5.1-dev embryo-dev eio-dev emotion-dev eeze-dev \
19 xcb-util-keysyms-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 CFLAGS="$CFLAGS -fvisibility=hidden"
25 LDFLAGS="$LDFLAGS -fvisibility=hidden"
26 export LDFLAGS
27 ./configure \
28 --sysconfdir=/etc \
29 --disable-connman \
30 --disable-enlightenment-menu \
31 --disable-doc \
32 $CONFIGURE_ARGS &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 # Use a modified sysactions.conf
41 cp -a $stuff/etc $fs
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib $fs/usr
45 cp -a $install/usr/share/enlightenment $fs/usr/share
46 cp -a $install/usr/share/xsessions $fs/usr/share
48 # Remove devel files *.a/*.la
49 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
50 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
52 # Rm backgrouds (1,6 Mb).
53 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
55 # locales
56 for locale in $LOCALES; do
57 mv $install/usr/share/locale/$locale $fs/usr/share/locale
58 done
59 }
61 post_install()
62 {
63 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
64 | sed s/,e17//)
65 # Adding WM to SLIM available sessions.
66 if ! echo "$res" | grep -q enlightenment; then
67 echo -n "Adding enlightenment to /etc/slim.conf..."
68 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
69 /etc/slim.conf
70 status
71 fi
72 }
74 post_remove()
75 {
76 # Remove WM from SLIM available sessions.
77 if grep -q enlightenment $1/etc/slim.conf; then
78 sed -i s/enlightenment,// $1/etc/slim.conf
79 fi
80 }