wok-stable view enlightenment/receipt @ rev 9341
slitaz-fbsplash: add fbsplash.ppm.gz
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 19 11:26:36 2011 +0100 (2011-03-19) |
parents | b4a6c641b9eb |
children | eca06e0c34de |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.16.999.55225"
5 CATEGORY="x-window"
6 SHORT_DESC="Enlightenment window manager (E17)."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="alsa-lib edbus edje efreet"
9 BUILD_DEPENDS=""
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.enlightenment.org/"
12 WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL"
13 TAGS="wm window-manager"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 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/share
27 # Use a modified sysactions.conf
28 cp -a stuff/etc $fs
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/lib $fs/usr
32 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
34 # Remove devel files *.a/*.la
35 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
36 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
38 # Rm backgrouds (1,6 Mb).
39 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
40 }
42 post_install()
43 {
44 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
45 # Adding WM to SLIM available sessions.
46 if ! echo "$res" | grep -q e17; then
47 echo -n "Adding e17 to /etc/slim.conf..."
48 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
49 status
50 fi
51 }
53 post_remove()
54 {
55 # Remove WM from SLIM available sessions.
56 if grep -q e17 $1/etc/slim.conf; then
57 sed -i s/,e17// $1/etc/slim.conf
58 fi
59 }