wok-4.x view jwm/receipt @ rev 4316

Up: libproxy (0.3.0) and build --without-mozjs
author Christophe Lincoln <pankso@slitaz.org>
date Mon Sep 28 23:42:55 2009 +0200 (2009-09-28)
parents 1a46cc76994f
children 4466fa74bc06
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 [ -f done.resize-backgound.u ] || patch -p1 < ../stuff/resize-backgound.u
19 touch done.resize-backgound.u
20 ./configure \
21 --prefix=/usr \
22 --mandir=/usr/share/man \
23 --sysconfdir=/etc/jwm \
24 --disable-fribidi \
25 $CONFIGURE_ARGS &&
26 make
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin $fs/etc/jwm
33 cp -a $src/src/jwm $fs/usr/bin
34 # Simple config file.
35 cp stuff/simple.jwmrc $fs/etc/jwm/simple.jwmrc
36 }
38 # Pre and post install to backup all /etc/settings
39 #
40 pre_install()
41 {
42 local root
43 root=$1
44 echo ""
45 echo "Creating backup of JWM system configuration..."
46 cp -a $root/etc/jwm/system.jwmrc cp -a $root/etc/jwm/system.jwmrc.bak 2>/dev/null
47 echo ""
48 }
49 post_install()
50 {
51 local root
52 root=$1
53 echo ""
54 echo "Restoring backup of JWM system configuration..."
55 cp -a $root/etc/jwm/system.jwmrc.bak $root/etc/jwm/system.jwmrc 2>/dev/null
56 echo ""
57 }