wok-next annotate enlightenment-pam/receipt @ rev 10321
enlightenment-pam: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 22 00:06:20 2011 +0000 (2011-05-22) |
parents | d1768332cee0 |
children | eb4bf553e6b6 |
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" |
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" |
pascal@2600 | 13 |
slaxemulator@10321 | 14 DEPENDS="alsa-lib edbus edje efreet pam" |
slaxemulator@10321 | 15 BUILD_DEPENDS="eet-dev evas-dev ecore-dev embryo-dev edje-dev efreet-dev \ |
slaxemulator@10321 | 16 efreet edbus-dev edbus curl-dev libcrypto-dev openssl-dev fribidi-dev \ |
slaxemulator@10321 | 17 xorg-libXp-dev pam-dev" |
slaxemulator@10321 | 18 |
pascal@2600 | 19 # Rules to configure and make the package. |
pascal@2600 | 20 compile_rules() |
pascal@2600 | 21 { |
pascal@2600 | 22 cd $src |
slaxemulator@10321 | 23 ./configure $CONFIGURE_ARGS && |
slaxemulator@10321 | 24 make && make install |
pascal@2600 | 25 } |
pascal@2600 | 26 |
pascal@2600 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2600 | 28 genpkg_rules() |
pascal@2600 | 29 { |
pankso@2917 | 30 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@2600 | 31 # Use a modified sysactions.conf |
slaxemulator@9700 | 32 cp -a $WOK/$SOURCE/stuff/etc $fs |
pascal@2600 | 33 |
pascal@2600 | 34 cp -a $_pkg/usr/bin $fs/usr |
pankso@2917 | 35 cp -a $_pkg/usr/lib/enlightenment $fs/usr/lib |
pascal@2600 | 36 cp -a $_pkg/usr/share/enlightenment $fs/usr/share |
pascal@2600 | 37 |
pascal@2600 | 38 # Remove devel files *.a/*.la |
pascal@2600 | 39 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a |
pankso@2917 | 40 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a |
pascal@2600 | 41 |
pankso@2917 | 42 # Rm backgrouds (1,6 Mb) and desktop file already provides by other. |
pascal@2600 | 43 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
pankso@2917 | 44 rm $fs/usr/share/enlightenment/data/other/desktop_files* |
pascal@2600 | 45 } |
pascal@2600 | 46 |
pankso@2917 | 47 post_install() |
pankso@2917 | 48 { |
pankso@2917 | 49 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
pankso@2917 | 50 # Adding WM to SLIM available sessions. |
pankso@2917 | 51 if ! echo "$res" | grep -q e17; then |
pankso@2917 | 52 echo -n "Adding e17 to /etc/slim.conf..." |
pankso@2917 | 53 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf |
pankso@2917 | 54 status |
pankso@2917 | 55 fi |
pankso@2917 | 56 } |
pankso@2917 | 57 |
pankso@2917 | 58 post_remove() |
pankso@2917 | 59 { |
pankso@2917 | 60 # Remove WM from SLIM available sessions. |
pankso@2917 | 61 if grep -q e17 $1/etc/slim.conf; then |
pankso@2917 | 62 sed -i s/,e17// $1/etc/slim.conf |
pankso@2917 | 63 fi |
pankso@2917 | 64 } |