wok-6.x view jwm/receipt @ rev 12392

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