wok view jwm/receipt @ rev 13267

Up: talloc to 2.0.7.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Aug 17 15:29:05 2012 +0000 (2012-08-17)
parents 8e410d8c4dd2
children 7bb096863642
line source
1 # SliTaz package receipt.
3 PACKAGE="jwm"
4 VERSION="2.1.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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.joewing.net/programs/jwm/"
10 WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL"
11 TAGS="wm window-manager"
13 DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \
14 xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \
15 libpng slitaz-configs-base xorg-xload xorg-xclock nano"
16 BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev libpng-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
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
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin $fs/etc/xdg/jwm $fs/usr/share
37 cp -a $src/src/jwm $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 }