wok annotate enlightenment/receipt @ rev 8848
Up: libburn to 1.0.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Feb 24 22:24:14 2011 +0000 (2011-02-24) |
parents | b4a6c641b9eb |
children | eca06e0c34de |
rev | line source |
---|---|
pankso@140 | 1 # SliTaz package receipt. |
pankso@140 | 2 |
pankso@140 | 3 PACKAGE="enlightenment" |
gokhlayeh@8505 | 4 VERSION="0.16.999.55225" |
pankso@196 | 5 CATEGORY="x-window" |
mallory@1406 | 6 SHORT_DESC="Enlightenment window manager (E17)." |
pankso@140 | 7 MAINTAINER="pankso@slitaz.org" |
gokhlayeh@8505 | 8 DEPENDS="alsa-lib edbus edje efreet" |
gokhlayeh@8505 | 9 BUILD_DEPENDS="" |
pankso@140 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@140 | 11 WEB_SITE="http://www.enlightenment.org/" |
gokhlayeh@8505 | 12 WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL" |
jozee@4935 | 13 TAGS="wm window-manager" |
pankso@140 | 14 |
pankso@140 | 15 # Rules to configure and make the package. |
pankso@140 | 16 compile_rules() |
pankso@140 | 17 { |
pankso@140 | 18 cd $src |
gokhlayeh@8505 | 19 |
gokhlayeh@8505 | 20 ./configure && make && make install |
pankso@140 | 21 } |
pankso@140 | 22 |
pankso@140 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@140 | 24 genpkg_rules() |
pankso@140 | 25 { |
pankso@196 | 26 mkdir -p $fs/usr/share |
pankso@165 | 27 # Use a modified sysactions.conf |
pankso@165 | 28 cp -a stuff/etc $fs |
pankso@843 | 29 |
pankso@140 | 30 cp -a $_pkg/usr/bin $fs/usr |
pankso@140 | 31 cp -a $_pkg/usr/lib $fs/usr |
pankso@140 | 32 cp -a $_pkg/usr/share/enlightenment $fs/usr/share |
pankso@843 | 33 |
pankso@196 | 34 # Remove devel files *.a/*.la |
pankso@140 | 35 rm -rf $fs/usr/lib/$PACKAGE/preload/*.*a |
pankso@2917 | 36 rm -rf $fs/usr/lib/$PACKAGE/modules/*/*/*.*a |
pankso@843 | 37 |
pankso@140 | 38 # Rm backgrouds (1,6 Mb). |
pankso@140 | 39 rm -rf $fs/usr/share/enlightenment/data/backgrounds/* |
pankso@140 | 40 } |
pankso@140 | 41 |
pankso@2917 | 42 post_install() |
pankso@2917 | 43 { |
pankso@2917 | 44 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
pankso@2917 | 45 # Adding WM to SLIM available sessions. |
pankso@2917 | 46 if ! echo "$res" | grep -q e17; then |
pankso@2917 | 47 echo -n "Adding e17 to /etc/slim.conf..." |
pankso@2917 | 48 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf |
pankso@2917 | 49 status |
pankso@2917 | 50 fi |
pankso@2917 | 51 } |
pankso@2917 | 52 |
pankso@2917 | 53 post_remove() |
pankso@2917 | 54 { |
pankso@2917 | 55 # Remove WM from SLIM available sessions. |
pankso@2917 | 56 if grep -q e17 $1/etc/slim.conf; then |
pankso@2917 | 57 sed -i s/,e17// $1/etc/slim.conf |
pankso@2917 | 58 fi |
pankso@2917 | 59 } |