wok-6.x view pekwm/receipt @ rev 24016
Up tazinst (113)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 25 12:03:41 2021 +0000 (2021-02-25) |
parents | d443265acbc1 |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pekwm"
4 VERSION="0.1.17"
5 CATEGORY="x-window"
6 TAGS="window-manager"
7 SHORT_DESC="Very light, configurable and themable window manager for X."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.pekwm.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/pekdon/$PACKAGE/archive/release-$VERSION.tar.gz"
15 SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl"
16 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm"
17 BUILD_DEPENDS="libtool xorg-dev xorg-dev-proto zlib-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./autogen.sh &&
23 ./configure \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 mkdir -p $fs/usr/share/pekwm
36 mkdir -p $fs/etc
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/share/pekwm $fs/usr/share
40 cp -a $install/etc $fs
42 # Custom configuration files and scripts
43 cp -a $stuff/etc $fs
44 cp -a $stuff/scripts $fs/usr/share/pekwm
46 # Set permissions
47 chown -R root.root $fs
48 chmod +x $fs/etc/pekwm/start
49 chmod +x $fs/usr/share/pekwm/scripts/*
50 chmod 0755 $fs/usr/bin/pekwm
51 }
53 post_install()
54 {
55 # Pekwm searches for default font path (100dpi folder) for xserver to render
56 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
57 # by linking to ttf-dejavu
58 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then
59 mkdir -p "$1/usr/share/fonts/X11/100dpi"
60 cd "$1/usr/share/fonts/X11/100dpi"
61 ln -s ../../truetype/ttf-dejavu/* .
62 fi
64 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
65 # Adding WM to SLIM available sessions.
66 if ! echo "$res" | grep -q $PACKAGE; then
67 echo
68 echo -n "Adding $PACKAGE to /etc/slim.conf..."
69 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
70 status
71 fi
72 }
74 post_remove()
75 {
76 # Remove WM from SLIM available sessions.
77 if grep -q $PACKAGE "$1/etc/slim.conf"; then
78 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
79 fi
80 }