wok-6.x view enlightenment-pam/receipt @ rev 14520
linux64: update modules64.list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 16 21:55:34 2013 +0200 (2013-05-16) |
parents | 15fb93be1912 |
children | 868bc1b2a056 |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment-pam"
4 SOURCE="enlightenment"
5 VERSION="0.17.2.1"
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 eeze alsa-lib connman pam xcb-util-keysyms"
18 BUILD_DEPENDS="emotion-dev efreet-dev edbus-dev eeze-dev
19 alsa-lib-dev bluez-dev connman-dev pam-dev pm-utils xcb-util-keysyms-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 CFLAGS="$CFLAGS -fvisibility=hidden"
25 LDFLAGS="$LDFLAGS -fvisibility=hidden"
26 export LDFLAGS
27 ./configure \
28 --sysconfdir=/etc \
29 --disable-doc \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/usr/share/applications
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/enlightenment $fs/usr/lib
43 cp -a $install/usr/share/enlightenment $fs/usr/share
44 cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications
46 # Remove devel files *.a/*.la
47 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
48 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
50 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
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}/" \
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/enlightenement,// $1/etc/slim.conf
77 fi
78 }