wok-next view jwm/receipt @ rev 15940

Up: jwm (2.2.0) with new style, use compton and hsetroot
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 22 19:26:13 2014 +0100 (2014-02-22)
parents 7bb096863642
children 509a8cf333fe
line source
1 # SliTaz package receipt.
3 PACKAGE="jwm"
4 VERSION="2.2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="JWM is a light Window Manager for the X window system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.joewing.net/programs/jwm/"
11 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
12 TAGS="wm window-manager"
14 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \
15 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \
16 libpng slitaz-configs-base xorg-xload xorg-xclock nano imlib2 hsetroot compton"
17 BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev libpng-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 #[ -f done.resize-backgound.u ] || patch -p1 < $stuff/resize-backgound.u
23 #touch done.resize-backgound.u
24 ./configure \
25 --prefix=/usr \
26 --mandir=/usr/share/man \
27 --sysconfdir=/etc/xdg/jwm \
28 --disable-fribidi \
29 $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc/xdg/jwm $fs/usr/share
37 cp -a $install/usr/bin $fs/usr/bin
38 # Simple and default config file.
39 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
40 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
41 cp -r $stuff/xsessions $fs/usr/share
42 }
44 post_install()
45 {
46 if [ -d "$1/etc/jwm" ]; then
47 echo "Removing old system wide configs: $1/etc/jwm"
48 rm -rf $1/etc/jwm
49 fi
50 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
51 # Adding WM to SLIM available sessions.
52 if ! echo "$res" | grep -q $PACKAGE; then
53 echo -n "Adding $PACKAGE to /etc/slim.conf..."
54 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
55 status
56 fi
57 }
59 post_remove()
60 {
61 # Remove WM from SLIM available sessions.
62 if grep -q $PACKAGE $1/etc/slim.conf; then
63 sed -i s/,$PACKAGE// $1/etc/slim.conf
64 fi
65 }