wok-undigest view e18/receipt @ rev 1120

Add sysdig
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 04 14:36:46 2014 +0000 (2014-04-04)
parents
children c99806b16d6d
line source
1 # SliTaz package receipt.
3 PACKAGE="e18"
4 SOURCE="enlightenment"
5 VERSION="0.18.6"
6 CATEGORY="x-window"
7 SHORT_DESC="Enlightenment (E18) desktop environment with PAM support."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.enlightenment.org/"
12 WGET_URL="http://download.enlightenment.org/rel/apps/$SOURCE/$TARBALL"
13 PROVIDE="enlightenment"
14 TAGS="e enlightenment e18 wm window-manager"
15 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
16 HOST_ARCH="i486 arm"
18 SUGGESTED="wpa_supplicant connman pm-utils"
19 DEPENDS="efl elementary pam xcb-util-keysyms"
20 BUILD_DEPENDS="efl-dev elementary-dev pam-dev xcb-util-keysyms-dev"
22 # Handle cross compilation
23 case "$ARCH" in
24 i?86) BUILD_DEPENDS="$BUILD_DEPENDS pm-utils connman-dev bluez-dev" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 CFLAGS="$CFLAGS -fvisibility=hidden"
31 LDFLAGS="$LDFLAGS -fvisibility=hidden"
32 ./configure \
33 --sysconfdir=/etc \
34 --disable-doc \
35 $CONFIGURE_ARGS &&
36 make $MAKEFLAGS && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib $fs/usr/share
43 # Use a modified sysactions.conf
44 cp -a $stuff/etc $fs
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/enlightenment $fs/usr/lib
48 cp -a $install/usr/share/enlightenment $fs/usr/share
49 cp -a $install/usr/share/xsessions $fs/usr/share
51 # Remove devel files *.a/*.la
52 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
54 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
55 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
57 # locales
58 for locale in $LOCALES; do
59 mv $install/usr/share/locale/$locale $fs/usr/share/locale
60 done
61 }
63 post_install()
64 {
65 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
66 | sed s/,e17//)
67 # Adding WM to SLIM available sessions.
68 if ! echo "$res" | grep -q enlightenment; then
69 echo -n "Adding enlightenment to /etc/slim.conf..."
70 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \
71 /etc/slim.conf
72 status
73 fi
74 }
76 post_remove()
77 {
78 # Remove WM from SLIM available sessions.
79 if grep -q enlightenment $1/etc/slim.conf; then
80 sed -i s/enlightenement,// $1/etc/slim.conf
81 fi
82 }