wok view enlightenment-pam/receipt @ rev 9947

php-mcrypt: change deps (libtool)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed May 18 12:25:10 2011 +0200 (2011-05-18)
parents 85cd798d6997
children b61e623d389c
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)."
8 MAINTAINER="pankso@slitaz.org"
9 DEPENDS="alsa-lib edbus edje efreet pam"
10 BUILD_DEPENDS=""
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://www.enlightenment.org/"
13 WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL"
14 PROVIDE="enlightenment:pam"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure && make && make install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/lib $fs/usr/share
27 # Use a modified sysactions.conf
28 cp -a $WOK/$SOURCE/stuff/etc $fs
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/lib/enlightenment $fs/usr/lib
32 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
34 # Remove devel files *.a/*.la
35 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
36 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
38 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
39 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
40 rm $fs/usr/share/enlightenment/data/other/desktop_files*
41 }
43 post_install()
44 {
45 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
46 # Adding WM to SLIM available sessions.
47 if ! echo "$res" | grep -q e17; then
48 echo -n "Adding e17 to /etc/slim.conf..."
49 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
50 status
51 fi
52 }
54 post_remove()
55 {
56 # Remove WM from SLIM available sessions.
57 if grep -q e17 $1/etc/slim.conf; then
58 sed -i s/,e17// $1/etc/slim.conf
59 fi
60 }