wok-6.x view jwm/receipt @ rev 372
Bad fr.fr in Osmo (dont have time to fix)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 08 13:02:24 2008 +0100 (2008-03-08) |
parents | 3a78a8b2ea89 |
children | 5a403db80cf8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="jwm"
4 VERSION="2.0.1"
5 CATEGORY="x-window"
6 SHORT_DESC="JWM is a light Window Manager for the X window system."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="xorg"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.joewing.net/programs/jwm/"
11 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure \
18 --prefix=/usr \
19 --mandir=/usr/share/man \
20 --sysconfdir=/etc/jwm \
21 --disable-fribidi \
22 $CONFIGURE_ARGS
23 make
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin $fs/etc/jwm
30 cp -a $src/src/jwm $fs/usr/bin
31 # Simple config file.
32 cp stuff/simple.jwmrc $fs/etc/jwm/system.jwmrc
33 cp stuff/simple.jwmrc $fs/etc/jwm/simple.jwmrc
34 }
36 # Pre and post install to backup all /etc/settings
37 #
38 pre_install()
39 {
40 local root
41 root=$1
42 echo ""
43 echo "Creating backup of JWM system configuration..."
44 cp -a $root/etc/jwm/system.jwmrc cp -a $root/etc/jwm/system.jwmrc.bak 2>/dev/null
45 echo ""
46 }
47 post_install()
48 {
49 local root
50 root=$1
51 echo ""
52 echo "Restoring backup of JWM system configuration..."
53 cp -a $root/etc/jwm/system.jwmrc.bak $root/etc/jwm/system.jwmrc 2>/dev/null
54 echo ""
55 }