wok annotate enlightenment-pam/receipt @ rev 11765

up mtr (0.82) and added description
author Samuel Trassare <samuel_trassare@yahoo.com>
date Wed Feb 22 17:33:57 2012 -0800 (2012-02-22)
parents eb4bf553e6b6
children 15fb93be1912
rev   line source
pascal@2600 1 # SliTaz package receipt.
pascal@2600 2
pascal@2600 3 PACKAGE="enlightenment-pam"
pascal@2600 4 SOURCE="enlightenment"
gokhlayeh@8505 5 VERSION="0.16.999.55225"
pascal@2600 6 CATEGORY="x-window"
pankso@10621 7 SHORT_DESC="Enlightenment window manager (E17) with PAM, Bluez and connman support."
pascal@2600 8 MAINTAINER="pankso@slitaz.org"
pascal@2600 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2600 10 WEB_SITE="http://www.enlightenment.org/"
gokhlayeh@8505 11 WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL"
pascal@2601 12 PROVIDE="enlightenment:pam"
pankso@10621 13 TAGS="e17"
pascal@2600 14
pankso@10621 15 # Add PAM and bluez support (enlightenment is smaller).
pankso@10621 16 DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib pam bluez connman"
pankso@10621 17 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev
pankso@10621 18 edbus-dev alsa-lib-dev pam-dev bluez-dev connman-dev"
slaxemulator@10321 19
pascal@2600 20 # Rules to configure and make the package.
pascal@2600 21 compile_rules()
pascal@2600 22 {
pankso@10621 23 ./configure $CONFIGURE_ARGS && make && make install
pascal@2600 24 }
pascal@2600 25
pascal@2600 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2600 27 genpkg_rules()
pascal@2600 28 {
pankso@2917 29 mkdir -p $fs/usr/lib $fs/usr/share
pascal@2600 30 # Use a modified sysactions.conf
slaxemulator@9700 31 cp -a $WOK/$SOURCE/stuff/etc $fs
pascal@2600 32
pascal@2600 33 cp -a $_pkg/usr/bin $fs/usr
pankso@2917 34 cp -a $_pkg/usr/lib/enlightenment $fs/usr/lib
pascal@2600 35 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
pascal@2600 36
pascal@2600 37 # Remove devel files *.a/*.la
pascal@2600 38 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
pankso@2917 39 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
pascal@2600 40
pankso@2917 41 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
pascal@2600 42 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
pankso@2917 43 rm $fs/usr/share/enlightenment/data/other/desktop_files*
pascal@2600 44 }
pascal@2600 45
pankso@2917 46 post_install()
pankso@2917 47 {
pankso@2917 48 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
pankso@2917 49 # Adding WM to SLIM available sessions.
pankso@2917 50 if ! echo "$res" | grep -q e17; then
pankso@2917 51 echo -n "Adding e17 to /etc/slim.conf..."
pankso@2917 52 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
pankso@2917 53 status
pankso@2917 54 fi
pankso@2917 55 }
pankso@2917 56
pankso@2917 57 post_remove()
pankso@2917 58 {
pankso@2917 59 # Remove WM from SLIM available sessions.
pankso@2917 60 if grep -q e17 $1/etc/slim.conf; then
pankso@2917 61 sed -i s/,e17// $1/etc/slim.conf
pankso@2917 62 fi
pankso@2917 63 }