wok-6.x annotate enlightenment-pam/receipt @ rev 8982
Fixed othello to work locally so sources don't have to be downloaded everytime.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Mar 02 15:36:11 2011 +0000 (2011-03-02) |
parents | b4a6c641b9eb |
children | d1768332cee0 |
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 |
pascal@2600 | 28 cp -a ../$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 } |