wok-current view pekwm/receipt @ rev 5297
Up: xorg-xtrans (1.2.5)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 18 23:38:11 2010 +0200 (2010-04-18) |
parents | 95a7fe095e66 |
children | a967653480c1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pekwm"
4 VERSION="0.1.10"
5 CATEGORY="x-window"
6 SHORT_DESC="Very light, configurable and themable window manager for X."
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm"
9 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev"
10 SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.pekwm.org/projects/3/files"
13 WGET_URL="$WEB_SITE/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
20 make &&
21 make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin $fs/usr/share/pekwm $fs/etc
28 cp -a $_pkg/usr/bin $fs/usr
29 cp -a $_pkg/usr/share/pekwm $fs/usr/share
30 cp -a $_pkg/etc $fs
31 # Custom configuration files and scripts
32 cp -a stuff/etc $fs
33 cp -a stuff/scripts $fs/usr/share/pekwm
34 # Set perms.
35 chown -R root.root $fs
36 chmod +x $fs/etc/pekwm/start
37 chmod +x $fs/usr/share/pekwm/scripts/*
38 chmod 0755 $fs/usr/bin/pekwm
39 }
41 post_install()
42 {
43 # Pekwm searches for default font path (100dpi folder) for xsever to render
44 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
45 # by linking to ttf-dejavu
46 if [ ! -d $1/usr/share/fonts/X11/100dpi/ ]; then
47 mkdir -p $1/usr/share/fonts/X11/100dpi
48 cd $1/usr/share/fonts/X11/100dpi
49 ln -s ../../truetype/ttf-dejavu/* .
50 fi
52 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
53 # Adding WM to SLIM available sessions.
54 if ! echo "$res" | grep -q $PACKAGE; then
55 echo -n "Adding $PACKAGE to /etc/slim.conf..."
56 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
57 status
58 fi
59 }
61 post_remove()
62 {
63 # Remove WM from SLIM available sessions.
64 if grep -q $PACKAGE $1/etc/slim.conf; then
65 sed -i s/,$PACKAGE// $1/etc/slim.conf
66 fi
67 }