wok annotate jwm/receipt @ rev 12308
jwm,razor-qt,slim: fix sessions
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 17 12:29:55 2012 +0200 (2012-04-17) |
parents | 1505de7c87b2 |
children | 612c43caa4ec |
rev | line source |
---|---|
pankso@25 | 1 # SliTaz package receipt. |
pankso@25 | 2 |
pankso@25 | 3 PACKAGE="jwm" |
pankso@12019 | 4 VERSION="2.1.0" |
pankso@25 | 5 CATEGORY="x-window" |
pankso@25 | 6 SHORT_DESC="JWM is a light Window Manager for the X window system." |
pankso@25 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@25 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@25 | 9 WEB_SITE="http://www.joewing.net/programs/jwm/" |
pankso@25 | 10 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL" |
pankso@12019 | 11 CONFIG_FILES="/etc/jwm/system.jwmrc" |
jozee@4941 | 12 TAGS="wm window-manager" |
pankso@25 | 13 |
pankso@12019 | 14 DEPENDS="xorg slitaz-configs" |
pankso@12019 | 15 BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev" |
pankso@12019 | 16 |
pankso@25 | 17 # Rules to configure and make the package. |
pankso@25 | 18 compile_rules() |
pankso@25 | 19 { |
pankso@90 | 20 cd $src |
slaxemulator@9700 | 21 [ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u |
pascal@1553 | 22 touch done.resize-backgound.u |
pankso@90 | 23 ./configure \ |
pankso@90 | 24 --prefix=/usr \ |
pankso@90 | 25 --mandir=/usr/share/man \ |
pankso@90 | 26 --sysconfdir=/etc/jwm \ |
pankso@90 | 27 --disable-fribidi \ |
pascal@1553 | 28 $CONFIGURE_ARGS && |
pankso@90 | 29 make |
pankso@25 | 30 } |
pankso@25 | 31 |
pankso@25 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@25 | 33 genpkg_rules() |
pankso@25 | 34 { |
pankso@272 | 35 mkdir -p $fs/usr/bin $fs/etc/jwm |
pankso@272 | 36 cp -a $src/src/jwm $fs/usr/bin |
pankso@12019 | 37 # Simple and default config file. |
pankso@12019 | 38 cp $stuff/simple.jwmrc $fs/etc/jwm/simple.jwmrc |
pankso@12019 | 39 cp $stuff/slitaz.jwmrc $fs/etc/jwm/system.jwmrc |
pankso@25 | 40 } |
pankso@12308 | 41 |
pankso@12308 | 42 post_install() |
pankso@12308 | 43 { |
pankso@12308 | 44 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12308 | 45 # Adding WM to SLIM available sessions. |
pankso@12308 | 46 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12308 | 47 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12308 | 48 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf |
pankso@12308 | 49 status |
pankso@12308 | 50 fi |
pankso@12308 | 51 } |
pankso@12308 | 52 |
pankso@12308 | 53 post_remove() |
pankso@12308 | 54 { |
pankso@12308 | 55 # Remove WM from SLIM available sessions. |
pankso@12308 | 56 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@12308 | 57 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@12308 | 58 fi |
pankso@12308 | 59 } |