wok annotate jwm/receipt @ rev 11703
Up: tazpanel (1.2.2)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Feb 19 12:12:15 2012 +0100 (2012-02-19) |
parents | 4466fa74bc06 |
children | 1505de7c87b2 |
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" |
jozee@4941 | 13 TAGS="wm window-manager" |
pankso@25 | 14 |
pankso@25 | 15 # Rules to configure and make the package. |
pankso@25 | 16 compile_rules() |
pankso@25 | 17 { |
pankso@90 | 18 cd $src |
slaxemulator@9700 | 19 [ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u |
pascal@1553 | 20 touch done.resize-backgound.u |
pankso@90 | 21 ./configure \ |
pankso@90 | 22 --prefix=/usr \ |
pankso@90 | 23 --mandir=/usr/share/man \ |
pankso@90 | 24 --sysconfdir=/etc/jwm \ |
pankso@90 | 25 --disable-fribidi \ |
pascal@1553 | 26 $CONFIGURE_ARGS && |
pankso@90 | 27 make |
pankso@25 | 28 } |
pankso@25 | 29 |
pankso@25 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@25 | 31 genpkg_rules() |
pankso@25 | 32 { |
pankso@272 | 33 mkdir -p $fs/usr/bin $fs/etc/jwm |
pankso@272 | 34 cp -a $src/src/jwm $fs/usr/bin |
pankso@272 | 35 # Simple config file. |
pankso@272 | 36 cp stuff/simple.jwmrc $fs/etc/jwm/simple.jwmrc |
pankso@25 | 37 } |
pankso@272 | 38 |
pankso@272 | 39 # Pre and post install to backup all /etc/settings |
pankso@272 | 40 # |
pankso@272 | 41 pre_install() |
pankso@272 | 42 { |
pankso@272 | 43 local root |
pankso@272 | 44 root=$1 |
pankso@272 | 45 echo "" |
pankso@272 | 46 echo "Creating backup of JWM system configuration..." |
pankso@272 | 47 cp -a $root/etc/jwm/system.jwmrc cp -a $root/etc/jwm/system.jwmrc.bak 2>/dev/null |
pankso@272 | 48 echo "" |
pankso@272 | 49 } |
pankso@272 | 50 post_install() |
pankso@272 | 51 { |
pankso@272 | 52 local root |
pankso@272 | 53 root=$1 |
pankso@272 | 54 echo "" |
pankso@272 | 55 echo "Restoring backup of JWM system configuration..." |
pankso@272 | 56 cp -a $root/etc/jwm/system.jwmrc.bak $root/etc/jwm/system.jwmrc 2>/dev/null |
pankso@272 | 57 echo "" |
pankso@272 | 58 } |