wok-current annotate enlightenment-pam/receipt @ rev 9715
glibc-base: remove post_install() it not working and not usefull
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 08 23:49:22 2011 +0200 (2011-05-08) |
parents | 85cd798d6997 |
children | b61e623d389c |
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" |
pascal@2600 | 7 SHORT_DESC="Enlightenment window manager (E17)." |
pascal@2600 | 8 MAINTAINER="pankso@slitaz.org" |
gokhlayeh@8505 | 9 DEPENDS="alsa-lib edbus edje efreet pam" |
gokhlayeh@8505 | 10 BUILD_DEPENDS="" |
pascal@2600 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2600 | 12 WEB_SITE="http://www.enlightenment.org/" |
gokhlayeh@8505 | 13 WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL" |
pascal@2601 | 14 PROVIDE="enlightenment:pam" |
pascal@2600 | 15 |
pascal@2600 | 16 # Rules to configure and make the package. |
pascal@2600 | 17 compile_rules() |
pascal@2600 | 18 { |
pascal@2600 | 19 cd $src |
gokhlayeh@8505 | 20 ./configure && make && make install |
pascal@2600 | 21 } |
pascal@2600 | 22 |
pascal@2600 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2600 | 24 genpkg_rules() |
pascal@2600 | 25 { |
pankso@2917 | 26 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@2600 | 27 # Use a modified sysactions.conf |
slaxemulator@9700 | 28 cp -a $WOK/$SOURCE/stuff/etc $fs |
pascal@2600 | 29 |
pascal@2600 | 30 cp -a $_pkg/usr/bin $fs/usr |
pankso@2917 | 31 cp -a $_pkg/usr/lib/enlightenment $fs/usr/lib |
pascal@2600 | 32 cp -a $_pkg/usr/share/enlightenment $fs/usr/share |
pascal@2600 | 33 |
pascal@2600 | 34 # Remove devel files *.a/*.la |
pascal@2600 | 35 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a |
pankso@2917 | 36 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a |
pascal@2600 | 37 |
pankso@2917 | 38 # Rm backgrouds (1,6 Mb) and desktop file already provides by other. |
pascal@2600 | 39 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
pankso@2917 | 40 rm $fs/usr/share/enlightenment/data/other/desktop_files* |
pascal@2600 | 41 } |
pascal@2600 | 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 } |