wok-6.x view enlightenment-pam/receipt @ rev 14707
python-edbus-dev, python-edje-dev, python-elementary-dev, python-evas-dev: back to 1.7.0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 08 09:46:06 2013 +0200 (2013-06-08) |
parents | 5d218ebd670e |
children | b2da2c5cbaf2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment-pam"
4 SOURCE="enlightenment"
5 VERSION="0.17.3"
6 CATEGORY="x-window"
7 SHORT_DESC="Enlightenment window manager (E17) with PAM, Bluez and connman support."
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.enlightenment.org/"
11 WGET_URL="http://download.enlightenment.org/releases/$TARBALL"
12 PROVIDE="enlightenment:pam"
13 TAGS="e enlightenment wm window-manager"
14 LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
16 # Add PAM and bluez support (enlightenment is smaller).
17 DEPENDS="emotion efreet edbus alsa-lib pam xcb-util-keysyms"
18 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev
19 xcb-util-keysyms-dev alsa-lib-dev
20 bluez-dev connman-dev pam-dev pm-utils"
21 SUGGESTED="bluez wpa_supplicant connman pm-utils"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 CFLAGS="$CFLAGS -fvisibility=hidden"
27 LDFLAGS="$LDFLAGS -fvisibility=hidden"
28 export LDFLAGS
30 ./configure \
31 --sysconfdir=/etc \
32 --disable-mount-hal \
33 --disable-doc \
34 --build=${ARCH}-slitaz-gnulinux \
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/applications
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/enlightenment.desktop $fs/usr/share/applications
51 # Remove devel files *.a/*.la
52 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
53 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
55 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
56 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
58 # locales
59 for locale in $LOCALES; do
60 mv $install/usr/share/locale/$locale $fs/usr/share/locale
61 done
62 }
64 post_install()
65 {
66 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
67 | sed s/,e17//)
68 # Adding WM to SLIM available sessions.
69 if ! echo "$res" | grep -q enlightenment; then
70 echo -n "Adding enlightenment to /etc/slim.conf..."
71 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \
72 /etc/slim.conf
73 status
74 fi
75 }
77 post_remove()
78 {
79 # Remove WM from SLIM available sessions.
80 if grep -q enlightenment $1/etc/slim.conf; then
81 sed -i s/enlightenement,// $1/etc/slim.conf
82 fi
83 }