wok-current view jwm/receipt @ rev 9861
php: try to fix again
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 16 18:10:27 2011 +0200 (2011-05-16) |
parents | 4466fa74bc06 |
children | 1505de7c87b2 |
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 }