wok-6.x view enlightenment/receipt @ rev 14313
Up: enlightenment (0.17.1)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:27:06 2013 +0200 (2013-04-07) |
parents | a6a5def83e18 |
children | 04a81f96cbb1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.17.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"
14 DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib embryo eio emotion \
15 eeze xcb-util-keysyms"
16 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev
17 edbus-dev alsa-lib-dev lua5.1-dev embryo-dev eio-dev emotion-dev eeze-dev \
18 xcb-util-keysyms-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 CFLAGS="$CFLAGS -fvisibility=hidden"
24 LDFLAGS="$LDFLAGS -fvisibility=hidden"
25 export LDFLAGS
26 ./configure \
27 --sysconfdir=/etc \
28 --disable-connman \
29 --disable-enlightenment-menu \
30 --disable-doc \
31 $CONFIGURE_ARGS &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share
39 # Use a modified sysactions.conf
40 cp -a $stuff/etc $fs
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib $fs/usr
44 cp -a $install/usr/share/enlightenment $fs/usr/share
45 cp -a $install/usr/share/xsessions $fs/usr/share
47 # Remove devel files *.a/*.la
48 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
49 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
51 # Rm backgrouds (1,6 Mb).
52 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
53 }
55 post_install()
56 {
57 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
58 # Adding WM to SLIM available sessions.
59 if ! echo "$res" | grep -q e17; then
60 echo -n "Adding e17 to /etc/slim.conf..."
61 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
62 status
63 fi
64 }
66 post_remove()
67 {
68 # Remove WM from SLIM available sessions.
69 if grep -q e17 $1/etc/slim.conf; then
70 sed -i s/,e17// $1/etc/slim.conf
71 fi
72 }