wok view enlightenment-pam/receipt @ rev 14331
Up: enlightenment-pam (0.17.2.1)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Apr 12 19:59:24 2013 +0200 (2013-04-12) |
parents | fe57bf03de94 |
children | 5d218ebd670e |
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="e17"
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="eina eet ecore evas edje eio efreet edbus eeze alsa-lib pam bluez connman xcb-util-keysyms
18 emotion"
19 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev eio-dev efreet-dev eeze-dev emotion-dev
20 edbus-dev alsa-lib-dev pam-dev bluez-dev connman-dev xcb-util-keysyms-dev pm-utils"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 CFLAGS="$CFLAGS -fvisibility=hidden"
26 LDFLAGS="$LDFLAGS -fvisibility=hidden"
27 export LDFLAGS
28 ./configure \
29 --sysconfdir=/etc \
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/lib $fs/usr/share/applications
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/enlightenment $fs/usr/lib
44 cp -a $install/usr/share/enlightenment $fs/usr/share
45 cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications
47 # Remove devel files *.a/*.la
48 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
49 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
51 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
52 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
54 # locales
55 for locale in $LOCALES; do
56 mv $install/usr/share/locale/$locale $fs/usr/share/locale
57 done
58 }
60 post_install()
61 {
62 res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
63 | sed s/,e17//)
64 # Adding WM to SLIM available sessions.
65 if ! echo "$res" | grep -q enlightenment; then
66 echo -n "Adding enlightenment to /etc/slim.conf..."
67 sed -i "s/^sessions.*/sessions enlightenment,${res}/" \
68 /etc/slim.conf
69 status
70 fi
71 }
73 post_remove()
74 {
75 # Remove WM from SLIM available sessions.
76 if grep -q enlightenment $1/etc/slim.conf; then
77 sed -i s/enlightenement,// $1/etc/slim.conf
78 fi
79 }