wok view enlightenment/receipt @ rev 5308
busybox: update init scripts
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 20 18:23:21 2010 +0200 (2010-04-20) |
parents | 6e90579538d6 |
children | b29c8c2da6bb |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.16.999.063"
5 CATEGORY="x-window"
6 SHORT_DESC="Enlightenment window manager (E17)."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="eet evas ecore embryo edje efreet edbus slitaz-menus curl \
9 xorg-libXcomposite libcrypto openssl alsa-lib xorg-libX11 xorg-libXau \
10 xorg-libXdmcp xorg-libXext fribidi xorg-libXp xorg-libXss libtasn1"
11 BUILD_DEPENDS="eet-dev evas-dev ecore-dev embryo-dev edje-dev efreet-dev \
12 efreet edbus-dev edbus curl-dev libcrypto-dev openssl-dev fribidi-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://www.enlightenment.org/"
15 WGET_URL="http://download.enlightenment.org/snapshots/2009-12-02/$TARBALL"
16 TAGS="wm window-manager"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i 's|/pam_appl.h|/pam_appl.h.DUMMY|' configure.in
23 ./configure \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
37 # Use a modified sysactions.conf
38 cp -a stuff/etc $fs
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/lib $fs/usr
42 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
44 # Remove devel files *.a/*.la
45 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
46 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
48 # Rm backgrouds (1,6 Mb).
49 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
50 }
52 post_install()
53 {
54 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
55 # Adding WM to SLIM available sessions.
56 if ! echo "$res" | grep -q e17; then
57 echo -n "Adding e17 to /etc/slim.conf..."
58 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
59 status
60 fi
61 }
63 post_remove()
64 {
65 # Remove WM from SLIM available sessions.
66 if grep -q e17 $1/etc/slim.conf; then
67 sed -i s/,e17// $1/etc/slim.conf
68 fi
69 }