wok view enlightenment-pam/receipt @ rev 11478
Up: json-glib 0.14.2 (thank godane)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Dec 18 03:01:59 2011 +0100 (2011-12-18) |
parents | eb4bf553e6b6 |
children | 15fb93be1912 |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment-pam"
4 SOURCE="enlightenment"
5 VERSION="0.16.999.55225"
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/snapshots/2010-12-03/$TARBALL"
12 PROVIDE="enlightenment:pam"
13 TAGS="e17"
15 # Add PAM and bluez support (enlightenment is smaller).
16 DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib pam bluez connman"
17 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev
18 edbus-dev alsa-lib-dev pam-dev bluez-dev connman-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure $CONFIGURE_ARGS && make && make install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib $fs/usr/share
30 # Use a modified sysactions.conf
31 cp -a $WOK/$SOURCE/stuff/etc $fs
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/lib/enlightenment $fs/usr/lib
35 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
37 # Remove devel files *.a/*.la
38 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
39 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
41 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
42 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
43 rm $fs/usr/share/enlightenment/data/other/desktop_files*
44 }
46 post_install()
47 {
48 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
49 # Adding WM to SLIM available sessions.
50 if ! echo "$res" | grep -q e17; then
51 echo -n "Adding e17 to /etc/slim.conf..."
52 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
53 status
54 fi
55 }
57 post_remove()
58 {
59 # Remove WM from SLIM available sessions.
60 if grep -q e17 $1/etc/slim.conf; then
61 sed -i s/,e17// $1/etc/slim.conf
62 fi
63 }