wok view enlightenment-pam/receipt @ rev 9287

xfsprogs: partial workaround for compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 16 18:30:53 2011 +0100 (2011-03-16)
parents b4a6c641b9eb
children d1768332cee0
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 ../$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 }