wok-6.x view pekwm/receipt @ rev 19663
ffmpeg: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 30 18:49:17 2017 +0100 (2017-01-30) |
parents | 5d53e8ccbc8d |
children | 970c5ec9a60a |
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"
13 TAGS="window-manager"
15 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm"
16 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/share/pekwm $fs/etc
31 cp -a $install/usr/bin $fs/usr
32 cp -a $install/usr/share/pekwm $fs/usr/share
33 cp -a $install/etc $fs
34 # Custom configuration files and scripts
35 cp -a $stuff/etc $fs
36 cp -a $stuff/scripts $fs/usr/share/pekwm
37 # Set perms.
38 chown -R root.root $fs
39 chmod +x $fs/etc/pekwm/start
40 chmod +x $fs/usr/share/pekwm/scripts/*
41 chmod 0755 $fs/usr/bin/pekwm
42 }
44 post_install()
45 {
46 # Pekwm searches for default font path (100dpi folder) for xsever to render
47 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
48 # by linking to ttf-dejavu
49 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then
50 mkdir -p "$1/usr/share/fonts/X11/100dpi"
51 cd "$1/usr/share/fonts/X11/100dpi"
52 ln -s ../../truetype/ttf-dejavu/* .
53 fi
55 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
56 # Adding WM to SLIM available sessions.
57 if ! echo "$res" | grep -q $PACKAGE; then
58 echo -n "Adding $PACKAGE to /etc/slim.conf..."
59 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
60 status
61 fi
62 }
64 post_remove()
65 {
66 # Remove WM from SLIM available sessions.
67 if grep -q $PACKAGE "$1/etc/slim.conf"; then
68 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
69 fi
70 }