wok-current annotate enlightenment/receipt @ rev 4089
Up: enlightenment (snapshot 062) + eet (1.2.2)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Sep 17 11:53:23 2009 +0200 (2009-09-17) |
parents | dd4fd1e61a63 |
children | f45ca0153dd5 |
rev | line source |
---|---|
pankso@140 | 1 # SliTaz package receipt. |
pankso@140 | 2 |
pankso@140 | 3 PACKAGE="enlightenment" |
pankso@4089 | 4 VERSION="0.16.999.062" |
pankso@196 | 5 CATEGORY="x-window" |
mallory@1406 | 6 SHORT_DESC="Enlightenment window manager (E17)." |
pankso@140 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2917 | 8 DEPENDS="eet evas ecore embryo edje efreet edbus slitaz-menus curl \ |
pascal@2487 | 9 xorg-libXcomposite libcrypto openssl alsa-lib xorg-libX11 xorg-libXau \ |
pascal@2487 | 10 xorg-libXdmcp xorg-libXext" |
pascal@2500 | 11 BUILD_DEPENDS="eet-dev evas-dev ecore-dev embryo-dev edje-dev efreet-dev \ |
pascal@3099 | 12 efreet edbus-dev edbus curl-dev libcrypto-dev openssl-dev " |
pankso@140 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@140 | 14 WEB_SITE="http://www.enlightenment.org/" |
pankso@4089 | 15 WGET_URL="http://download.enlightenment.org/snapshots/2009-07-29/$TARBALL" |
pankso@140 | 16 |
pankso@140 | 17 # Rules to configure and make the package. |
pankso@140 | 18 compile_rules() |
pankso@140 | 19 { |
pankso@140 | 20 cd $src |
pascal@2600 | 21 sed -i 's|/pam_appl.h|/pam_appl.h.DUMMY|' configure.in |
pankso@140 | 22 ./configure \ |
pankso@140 | 23 --prefix=/usr \ |
pankso@140 | 24 --sysconfdir=/etc \ |
pankso@140 | 25 --infodir=/usr/share/info \ |
pankso@140 | 26 --mandir=/usr/share/man \ |
pankso@2025 | 27 $CONFIGURE_ARGS && |
pankso@2025 | 28 make && |
pankso@140 | 29 make DESTDIR=$PWD/_pkg install |
pankso@140 | 30 } |
pankso@140 | 31 |
pankso@140 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@140 | 33 genpkg_rules() |
pankso@140 | 34 { |
pankso@196 | 35 mkdir -p $fs/usr/share |
pankso@165 | 36 # Use a modified sysactions.conf |
pankso@165 | 37 cp -a stuff/etc $fs |
pankso@843 | 38 |
pankso@140 | 39 cp -a $_pkg/usr/bin $fs/usr |
pankso@140 | 40 cp -a $_pkg/usr/lib $fs/usr |
pankso@140 | 41 cp -a $_pkg/usr/share/enlightenment $fs/usr/share |
pankso@843 | 42 |
pankso@196 | 43 # Remove devel files *.a/*.la |
pankso@140 | 44 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a |
pankso@2917 | 45 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a |
pankso@843 | 46 |
pankso@140 | 47 # Rm backgrouds (1,6 Mb). |
pankso@140 | 48 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
pankso@140 | 49 } |
pankso@140 | 50 |
pankso@2917 | 51 post_install() |
pankso@2917 | 52 { |
pankso@2917 | 53 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
pankso@2917 | 54 # Adding WM to SLIM available sessions. |
pankso@2917 | 55 if ! echo "$res" | grep -q e17; then |
pankso@2917 | 56 echo -n "Adding e17 to /etc/slim.conf..." |
pankso@2917 | 57 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf |
pankso@2917 | 58 status |
pankso@2917 | 59 fi |
pankso@2917 | 60 } |
pankso@2917 | 61 |
pankso@2917 | 62 post_remove() |
pankso@2917 | 63 { |
pankso@2917 | 64 # Remove WM from SLIM available sessions. |
pankso@2917 | 65 if grep -q e17 $1/etc/slim.conf; then |
pankso@2917 | 66 sed -i s/,e17// $1/etc/slim.conf |
pankso@2917 | 67 fi |
pankso@2917 | 68 } |