wok view enlightenment/receipt @ rev 4089

Up: enlightenment (snapshot 062) + eet (1.2.2)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Sep 17 11:53:23 2009 +0200 (2009-09-17)
parents dd4fd1e61a63
children f45ca0153dd5
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment"
4 VERSION="0.16.999.062"
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"
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 "
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://www.enlightenment.org/"
15 WGET_URL="http://download.enlightenment.org/snapshots/2009-07-29/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i 's|/pam_appl.h|/pam_appl.h.DUMMY|' configure.in
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share
36 # Use a modified sysactions.conf
37 cp -a stuff/etc $fs
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib $fs/usr
41 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
43 # Remove devel files *.a/*.la
44 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
45 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
47 # Rm backgrouds (1,6 Mb).
48 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
49 }
51 post_install()
52 {
53 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
54 # Adding WM to SLIM available sessions.
55 if ! echo "$res" | grep -q e17; then
56 echo -n "Adding e17 to /etc/slim.conf..."
57 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
58 status
59 fi
60 }
62 post_remove()
63 {
64 # Remove WM from SLIM available sessions.
65 if grep -q e17 $1/etc/slim.conf; then
66 sed -i s/,e17// $1/etc/slim.conf
67 fi
68 }