wok-next view jwm/receipt @ rev 6961

xorg-server: add config dir
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Oct 26 13:15:37 2010 +0200 (2010-10-26)
parents 65d3dfc87776
children d1768332cee0
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"
13 TAGS="wm window-manager"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 [ -f done.resize-backgound.u ] || patch -p1 < ../stuff/resize-backgound.u
20 touch done.resize-backgound.u
21 ./configure \
22 --prefix=/usr \
23 --mandir=/usr/share/man \
24 --sysconfdir=/etc/jwm \
25 --disable-fribidi \
26 $CONFIGURE_ARGS &&
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin $fs/etc/jwm
34 cp -a $src/src/jwm $fs/usr/bin
35 # Simple config file.
36 cp stuff/simple.jwmrc $fs/etc/jwm/simple.jwmrc
37 }
39 # Pre and post install to backup all /etc/settings
40 #
41 pre_install()
42 {
43 local root
44 root=$1
45 echo ""
46 echo "Creating backup of JWM system configuration..."
47 cp -a $root/etc/jwm/system.jwmrc cp -a $root/etc/jwm/system.jwmrc.bak 2>/dev/null
48 echo ""
49 }
50 post_install()
51 {
52 local root
53 root=$1
54 echo ""
55 echo "Restoring backup of JWM system configuration..."
56 cp -a $root/etc/jwm/system.jwmrc.bak $root/etc/jwm/system.jwmrc 2>/dev/null
57 echo ""
58 }