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