wok-stable annotate enlightenment-pam/receipt @ rev 5564

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