wok-current annotate jwm/receipt @ rev 12473

Up: polkit (0.104) Dont build with pam by default (use polkit-pam)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 23 12:54:00 2012 +0200 (2012-04-23)
parents 8e410d8c4dd2
children 7bb096863642
rev   line source
pankso@25 1 # SliTaz package receipt.
pankso@25 2
pankso@25 3 PACKAGE="jwm"
pankso@12019 4 VERSION="2.1.0"
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@25 9 WEB_SITE="http://www.joewing.net/programs/jwm/"
pankso@25 10 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
jozee@4941 11 TAGS="wm window-manager"
pankso@25 12
pankso@12407 13 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \
pankso@12407 14 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \
pankso@12407 15 libpng slitaz-configs-base xorg-xload xorg-xclock nano"
pankso@12407 16 BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev libpng-dev"
pankso@12019 17
pankso@25 18 # Rules to configure and make the package.
pankso@25 19 compile_rules()
pankso@25 20 {
pankso@90 21 cd $src
slaxemulator@9700 22 [ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
pascal@1553 23 touch done.resize-backgound.u
pankso@90 24 ./configure \
pankso@90 25 --prefix=/usr \
pankso@90 26 --mandir=/usr/share/man \
pankso@12407 27 --sysconfdir=/etc/xdg/jwm \
pankso@90 28 --disable-fribidi \
pascal@1553 29 $CONFIGURE_ARGS &&
pankso@90 30 make
pankso@25 31 }
pankso@25 32
pankso@25 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@25 34 genpkg_rules()
pankso@25 35 {
pankso@12407 36 mkdir -p $fs/usr/bin $fs/etc/xdg/jwm $fs/usr/share
pankso@272 37 cp -a $src/src/jwm $fs/usr/bin
pankso@12019 38 # Simple and default config file.
pankso@12407 39 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
pankso@12407 40 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
pankso@12407 41 cp -r $stuff/xsessions $fs/usr/share
pankso@25 42 }
pankso@12308 43
pankso@12308 44 post_install()
pankso@12308 45 {
pankso@12407 46 if [ -d "$1/etc/jwm" ]; then
pankso@12407 47 echo "Removing old system wide configs: $1/etc/jwm"
pankso@12407 48 rm -rf $1/etc/jwm
pankso@12407 49 fi
pankso@12308 50 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
pankso@12308 51 # Adding WM to SLIM available sessions.
pankso@12308 52 if ! echo "$res" | grep -q $PACKAGE; then
pankso@12308 53 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pankso@12308 54 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
pankso@12308 55 status
pankso@12308 56 fi
pankso@12308 57 }
pankso@12308 58
pankso@12308 59 post_remove()
pankso@12308 60 {
pankso@12308 61 # Remove WM from SLIM available sessions.
pankso@12308 62 if grep -q $PACKAGE $1/etc/slim.conf; then
pankso@12308 63 sed -i s/,$PACKAGE// $1/etc/slim.conf
pankso@12308 64 fi
pankso@12308 65 }