wok view pekwm/receipt @ rev 16374

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