wok-next view jwm/receipt @ rev 15972
Up dropbear (2014.63)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 28 15:13:09 2014 +0000 (2014-02-28) |
parents | 410490fd06f0 |
children | 9be2dfe2fe72 |
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 2>&1 | \
30 sed 's/config.rpath: No such/config.rpath: no such/' &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc/xdg/jwm $fs/usr/share
38 cp -a $install/usr/bin $fs/usr/bin
39 # Simple and default config file.
40 cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc
41 cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc
42 cp -r $stuff/xsessions $fs/usr/share
43 }
45 post_install()
46 {
47 if [ -d "$1/etc/jwm" ]; then
48 echo "Removing old system wide configs: $1/etc/jwm"
49 rm -rf $1/etc/jwm
50 fi
51 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
52 # Adding WM to SLIM available sessions.
53 if ! echo "$res" | grep -q $PACKAGE; then
54 echo -n "Adding $PACKAGE to /etc/slim.conf..."
55 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
56 status
57 fi
58 }
60 post_remove()
61 {
62 # Remove WM from SLIM available sessions.
63 if grep -q $PACKAGE $1/etc/slim.conf; then
64 sed -i s/,$PACKAGE// $1/etc/slim.conf
65 fi
66 }