wok-next view pekwm/receipt @ rev 2875

Add: pekwm Window Manager
author Rohit Joshi <jozee@slitaz.org>
date Sun May 03 17:27:09 2009 +0000 (2009-05-03)
parents
children d432f911ee03
line source
1 # SliTaz package receipt.
3 PACKAGE="pekwm"
4 VERSION="0.1.10"
5 CATEGORY="x-window"
6 SHORT_DESC="Window manager"
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.pekwm.org/projects/3/files"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS
19 make
20 make DESTDIR=$PWD/_pkg install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin
27 mkdir -p $fs/usr/share
28 mkdir -p $fs/etc
29 cp -a $_pkg/usr/bin $fs/usr
30 cp -a $_pkg/usr/share/pekwm $fs/usr/share
31 cp -a $_pkg/etc $fs
32 #cp -a stuff/etc/* $fs/etc/pekwm
34 # Set perms.
35 chown -R root.root $fs
36 chmod 0755 $fs/usr/bin/pekwm
41 }
43 post_install()
44 {
45 #pekwm searches for default font path (100dpi folder) for xsever to render menus; either manually set it in .xinitrc or
46 #fake 100dpi folder fonts by linking to ttf-dejavu
47 mkdir -p /usr/share/fonts/X11/100dpi
48 ln -s /usr/share/fonts/truetype/ttf-dejavu/* /usr/share/fonts/X11/100dpi/
50 # add pekwm /etc/slim.conf
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},pekwm/" /etc/slim.conf
56 status
57 fi
59 # add pekwm to tazx
61 }
63 post_remove()
64 {
65 # Remove pekwm from SLIM available sessions.
66 if grep -q pekwm $1/etc/slim.conf; then
67 sed -i s/,pekwm// $1/etc/slim.conf
68 fi
69 }