wok view pekwm/receipt @ rev 20319

Up tazlito (501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 20 13:28:18 2018 +0200 (22 months ago)
parents 9e01bc6321ea
children 2f1060dc67fe
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
59 echo -n "Adding $PACKAGE to /etc/slim.conf..."
60 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
61 status
62 fi
63 }
65 post_remove()
66 {
67 # Remove WM from SLIM available sessions.
68 if grep -q $PACKAGE "$1/etc/slim.conf"; then
69 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
70 fi
71 }