wok-6.x view enlightenment/receipt @ rev 14549
thunderbird: Up to 17.0.6esr
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed May 22 22:18:37 2013 +0200 (2013-05-22) |
parents | 45718bdd7508 |
children | 525348e764eb |
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="e enlightenment wm window-manager"
12 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
14 DEPENDS="emotion efreet edbus eeze alsa-lib xcb-util-keysyms"
15 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev eeze-dev
16 alsa-lib-dev pm-utils xcb-util-keysyms-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 CFLAGS="$CFLAGS -fvisibility=hidden"
22 LDFLAGS="$LDFLAGS -fvisibility=hidden"
23 export LDFLAGS
24 ./configure \
25 --sysconfdir=/etc \
26 --disable-connman \
27 --disable-enlightenment-menu \
28 --disable-doc \
29 $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
37 # Use a modified sysactions.conf
38 cp -a $stuff/etc $fs
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib $fs/usr
42 cp -a $install/usr/share/enlightenment $fs/usr/share
43 cp -a $install/usr/share/xsessions $fs/usr/share
45 # Remove devel files *.a/*.la
46 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
47 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
49 # Rm backgrouds (1,6 Mb).
50 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
52 # locales
53 for locale in $LOCALES; do
54 mv $install/usr/share/locale/$locale $fs/usr/share/locale
55 done
56 }
58 post_install()
59 {
60 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
61 | sed s/,e17//)
62 # Adding WM to SLIM available sessions.
63 if ! echo "$res" | grep -q enlightenment; then
64 echo -n "Adding enlightenment to /etc/slim.conf..."
65 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
66 /etc/slim.conf
67 status
68 fi
69 }
71 post_remove()
72 {
73 # Remove WM from SLIM available sessions.
74 if grep -q enlightenment $1/etc/slim.conf; then
75 sed -i s/enlightenment,// $1/etc/slim.conf
76 fi
77 }