wok-stable annotate jwm/receipt @ rev 2359

Up: poppler (0.10.4)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 05 11:41:39 2009 +0100 (2009-03-05)
parents 1a46cc76994f
children 4466fa74bc06
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@1553 18 [ -f done.resize-backgound.u ] || patch -p1 < ../stuff/resize-backgound.u
pascal@1553 19 touch done.resize-backgound.u
pankso@90 20 ./configure \
pankso@90 21 --prefix=/usr \
pankso@90 22 --mandir=/usr/share/man \
pankso@90 23 --sysconfdir=/etc/jwm \
pankso@90 24 --disable-fribidi \
pascal@1553 25 $CONFIGURE_ARGS &&
pankso@90 26 make
pankso@25 27 }
pankso@25 28
pankso@25 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@25 30 genpkg_rules()
pankso@25 31 {
pankso@272 32 mkdir -p $fs/usr/bin $fs/etc/jwm
pankso@272 33 cp -a $src/src/jwm $fs/usr/bin
pankso@272 34 # Simple config file.
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 }