wok-stable annotate 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 |
rev | line source |
---|---|
pankso@25 | 1 # SliTaz package receipt. |
pankso@25 | 2 |
pankso@25 | 3 PACKAGE="jwm" |
pankso@25 | 4 VERSION="2.0.1" |
pankso@25 | 5 CATEGORY="x-window" |
pankso@25 | 6 SHORT_DESC="JWM is a light Window Manager for the X window system." |
pankso@25 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@25 | 8 DEPENDS="xorg" |
pascal@416 | 9 BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev" |
pankso@25 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@25 | 11 WEB_SITE="http://www.joewing.net/programs/jwm/" |
pankso@25 | 12 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL" |
pankso@25 | 13 |
pankso@25 | 14 # Rules to configure and make the package. |
pankso@25 | 15 compile_rules() |
pankso@25 | 16 { |
pankso@90 | 17 cd $src |
pascal@416 | 18 patch -p1 < ../stuff/resize-backgound.u |
pankso@90 | 19 ./configure \ |
pankso@90 | 20 --prefix=/usr \ |
pankso@90 | 21 --mandir=/usr/share/man \ |
pankso@90 | 22 --sysconfdir=/etc/jwm \ |
pankso@90 | 23 --disable-fribidi \ |
pankso@90 | 24 $CONFIGURE_ARGS |
pankso@90 | 25 make |
pankso@25 | 26 } |
pankso@25 | 27 |
pankso@25 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@25 | 29 genpkg_rules() |
pankso@25 | 30 { |
pankso@272 | 31 mkdir -p $fs/usr/bin $fs/etc/jwm |
pankso@272 | 32 cp -a $src/src/jwm $fs/usr/bin |
pankso@272 | 33 # Simple config file. |
pankso@272 | 34 cp stuff/simple.jwmrc $fs/etc/jwm/system.jwmrc |
pankso@272 | 35 cp stuff/simple.jwmrc $fs/etc/jwm/simple.jwmrc |
pankso@25 | 36 } |
pankso@272 | 37 |
pankso@272 | 38 # Pre and post install to backup all /etc/settings |
pankso@272 | 39 # |
pankso@272 | 40 pre_install() |
pankso@272 | 41 { |
pankso@272 | 42 local root |
pankso@272 | 43 root=$1 |
pankso@272 | 44 echo "" |
pankso@272 | 45 echo "Creating backup of JWM system configuration..." |
pankso@272 | 46 cp -a $root/etc/jwm/system.jwmrc cp -a $root/etc/jwm/system.jwmrc.bak 2>/dev/null |
pankso@272 | 47 echo "" |
pankso@272 | 48 } |
pankso@272 | 49 post_install() |
pankso@272 | 50 { |
pankso@272 | 51 local root |
pankso@272 | 52 root=$1 |
pankso@272 | 53 echo "" |
pankso@272 | 54 echo "Restoring backup of JWM system configuration..." |
pankso@272 | 55 cp -a $root/etc/jwm/system.jwmrc.bak $root/etc/jwm/system.jwmrc 2>/dev/null |
pankso@272 | 56 echo "" |
pankso@272 | 57 } |