wok-current annotate 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
rev   line source
pankso@140 1 # SliTaz package receipt.
pankso@140 2
pankso@140 3 PACKAGE="enlightenment"
gokhlayeh@8505 4 VERSION="0.16.999.55225"
pankso@196 5 CATEGORY="x-window"
mallory@1406 6 SHORT_DESC="Enlightenment window manager (E17)."
pankso@140 7 MAINTAINER="pankso@slitaz.org"
pankso@140 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@140 9 WEB_SITE="http://www.enlightenment.org/"
gokhlayeh@8505 10 WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL"
jozee@4935 11 TAGS="wm window-manager"
pankso@140 12
pankso@10529 13 DEPENDS="alsa-lib eina eet evas dbus edbus edje efreet libcurl hal giflib libgnutls"
pankso@10529 14 BUILD_DEPENDS="alsa-lib-dev eina-dev eet-dev evas-dev ecore-dev embryo-dev \
pankso@10529 15 edje-dev efreet-dev edbus-dev dbus-dev curl-dev openssl-dev xorg-libXp-dev \
pankso@10529 16 librsvg-dev gnutls-dev libcroco-dev fribidi-dev hal-dev giflib-dev"
slaxemulator@10320 17
pankso@140 18 # Rules to configure and make the package.
pankso@140 19 compile_rules()
pankso@140 20 {
pankso@10529 21 ./configure $CONFIGURE_ARGS && make && make install
pankso@140 22 }
pankso@140 23
pankso@140 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@140 25 genpkg_rules()
pankso@140 26 {
pankso@196 27 mkdir -p $fs/usr/share
pankso@165 28 # Use a modified sysactions.conf
pankso@10529 29 cp -a $stuff/etc $fs
pankso@843 30
pankso@140 31 cp -a $_pkg/usr/bin $fs/usr
pankso@140 32 cp -a $_pkg/usr/lib $fs/usr
pankso@140 33 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
pankso@843 34
pankso@196 35 # Remove devel files *.a/*.la
pankso@140 36 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a
pankso@2917 37 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a
pankso@843 38
pankso@140 39 # Rm backgrouds (1,6 Mb).
pankso@140 40 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
pankso@140 41 }
pankso@140 42
pankso@2917 43 post_install()
pankso@2917 44 {
pankso@2917 45 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
pankso@2917 46 # Adding WM to SLIM available sessions.
pankso@2917 47 if ! echo "$res" | grep -q e17; then
pankso@2917 48 echo -n "Adding e17 to /etc/slim.conf..."
pankso@2917 49 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
pankso@2917 50 status
pankso@2917 51 fi
pankso@2917 52 }
pankso@2917 53
pankso@2917 54 post_remove()
pankso@2917 55 {
pankso@2917 56 # Remove WM from SLIM available sessions.
pankso@2917 57 if grep -q e17 $1/etc/slim.conf; then
pankso@2917 58 sed -i s/,e17// $1/etc/slim.conf
pankso@2917 59 fi
pankso@2917 60 }