wok view enlightenment/receipt @ rev 10529
enlightenment: add bdeps, hope it build
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 25 16:49:02 2011 +0200 (2011-05-25) |
parents | eca06e0c34de |
children | eb4bf553e6b6 |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.enlightenment.org/"
10 WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL"
11 TAGS="wm window-manager"
13 DEPENDS="alsa-lib eina eet evas dbus edbus edje efreet libcurl hal giflib libgnutls"
14 BUILD_DEPENDS="alsa-lib-dev eina-dev eet-dev evas-dev ecore-dev embryo-dev \
15 edje-dev efreet-dev edbus-dev dbus-dev curl-dev openssl-dev xorg-libXp-dev \
16 librsvg-dev gnutls-dev libcroco-dev fribidi-dev hal-dev giflib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure $CONFIGURE_ARGS && make && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share
28 # Use a modified sysactions.conf
29 cp -a $stuff/etc $fs
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/lib $fs/usr
33 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
35 # Remove devel files *.a/*.la
36 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
37 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
39 # Rm backgrouds (1,6 Mb).
40 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
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 }