wok-4.x view jwm/receipt @ rev 416
JWM: resize backgound without respecting ratio width/height
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 12 19:24:20 2008 +0000 (2008-03-12) |
parents | fb4b753f4f90 |
children | 1a46cc76994f |
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 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/system.jwmrc
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 }