wok view jwm/receipt @ rev 1167

postfix: remove pid file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 30 12:12:44 2008 +0000 (2008-07-30)
parents 5a403db80cf8
children 65d3dfc87776
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 slitaz-configs"
9 BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.joewing.net/programs/jwm/"
12 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -p1 < ../stuff/resize-backgound.u
19 ./configure \
20 --prefix=/usr \
21 --mandir=/usr/share/man \
22 --sysconfdir=/etc/jwm \
23 --disable-fribidi \
24 $CONFIGURE_ARGS
25 make
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin $fs/etc/jwm
32 cp -a $src/src/jwm $fs/usr/bin
33 # Simple config file.
34 cp stuff/simple.jwmrc $fs/etc/jwm/simple.jwmrc
35 }
37 # Pre and post install to backup all /etc/settings
38 #
39 pre_install()
40 {
41 local root
42 root=$1
43 echo ""
44 echo "Creating backup of JWM system configuration..."
45 cp -a $root/etc/jwm/system.jwmrc cp -a $root/etc/jwm/system.jwmrc.bak 2>/dev/null
46 echo ""
47 }
48 post_install()
49 {
50 local root
51 root=$1
52 echo ""
53 echo "Restoring backup of JWM system configuration..."
54 cp -a $root/etc/jwm/system.jwmrc.bak $root/etc/jwm/system.jwmrc 2>/dev/null
55 echo ""
56 }