wok-6.x annotate jwm/receipt @ rev 901

Add screen
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 13 07:50:56 2008 +0000 (2008-06-13)
parents 5a403db80cf8
children 65d3dfc87776
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@474 8 DEPENDS="xorg slitaz-configs"
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/simple.jwmrc
pankso@25 35 }
pankso@272 36
pankso@272 37 # Pre and post install to backup all /etc/settings
pankso@272 38 #
pankso@272 39 pre_install()
pankso@272 40 {
pankso@272 41 local root
pankso@272 42 root=$1
pankso@272 43 echo ""
pankso@272 44 echo "Creating backup of JWM system configuration..."
pankso@272 45 cp -a $root/etc/jwm/system.jwmrc cp -a $root/etc/jwm/system.jwmrc.bak 2>/dev/null
pankso@272 46 echo ""
pankso@272 47 }
pankso@272 48 post_install()
pankso@272 49 {
pankso@272 50 local root
pankso@272 51 root=$1
pankso@272 52 echo ""
pankso@272 53 echo "Restoring backup of JWM system configuration..."
pankso@272 54 cp -a $root/etc/jwm/system.jwmrc.bak $root/etc/jwm/system.jwmrc 2>/dev/null
pankso@272 55 echo ""
pankso@272 56 }