wok view enlightenment/receipt @ rev 15702
Up: udevil (0.4.3)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Dec 22 15:11:57 2013 +0100 (2013-12-22) |
parents | d3e76f1e0aee |
children | 689fcc83daec |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.17.5"
5 CATEGORY="x-window"
6 SHORT_DESC="Enlightenment window manager (E17)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 LICENSE="BSD"
10 WEB_SITE="http://www.enlightenment.org/"
11 WGET_URL="http://download.enlightenment.org/releases/$TARBALL"
12 TAGS="e enlightenment wm window-manager"
13 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
15 DEPENDS="emotion efreet edbus alsa-lib xcb-util-keysyms"
16 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev
17 alsa-lib-dev pm-utils xcb-util-keysyms-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 CFLAGS="$CFLAGS -fvisibility=hidden"
23 LDFLAGS="$LDFLAGS -fvisibility=hidden"
24 export LDFLAGS
25 ./configure \
26 --sysconfdir=/etc \
27 --disable-connman \
28 --disable-enlightenment-menu \
29 --disable-doc \
30 $CONFIGURE_ARGS &&
31 make $MAKEFLAGS && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
38 # Use a modified sysactions.conf
39 cp -a $stuff/etc $fs
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/usr/share/enlightenment $fs/usr/share
44 cp -a $install/usr/share/xsessions $fs/usr/share
46 # Remove devel files *.a/*.la
47 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
48 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
50 # Rm backgrouds (1,6 Mb).
51 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
53 # locales
54 for locale in $LOCALES; do
55 mv $install/usr/share/locale/$locale $fs/usr/share/locale
56 done
57 }
59 post_install()
60 {
61 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
62 | sed s/,e17//)
63 # Adding WM to SLIM available sessions.
64 if ! echo "$res" | grep -q enlightenment; then
65 echo -n "Adding enlightenment to /etc/slim.conf..."
66 sed -i "s/^sessions.*/sessions enlightenment,${res}xs/" \
67 /etc/slim.conf
68 status
69 fi
70 }
72 post_remove()
73 {
74 # Remove WM from SLIM available sessions.
75 if grep -q enlightenment $1/etc/slim.conf; then
76 sed -i s/enlightenment,// $1/etc/slim.conf
77 fi
78 }