wok-next view pekwm/receipt @ rev 21723

busybox: update patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:44:52 2020 +0000 (2020-09-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.pekwm.org/projects/pekwm"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$WEB_SITE/files/$TARBALL"
14 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev"
16 compile_rules() {
17 ./configure $CONFIGURE_ARGS &&
18 make &&
19 make DESTDIR=$install install || return 1
21 # Custom configuration files and scripts
22 cp -r $stuff/etc $install
23 cp -r $stuff/scripts $install/usr/share/pekwm/
25 # Set perms.
26 chown -R root:root $install
27 chmod +x $install/etc/pekwm/start
28 chmod +x $install/usr/share/pekwm/scripts/*
29 }
31 genpkg_rules() {
32 copy @std
33 DEPENDS="libx11 libxinerama libxft libxrandr libxpm"
34 SUGGESTED="hsetroot tint2 lxpanel wbar xprop xev xdotool wmctrl"
35 TAGS="window-manager"
36 }
38 post_install() {
39 # Pekwm searches for default font path (100dpi folder) for xsever to render
40 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
41 # by linking to ttf-dejavu
42 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then
43 mkdir -p "$1/usr/share/fonts/X11/100dpi"
44 cd "$1/usr/share/fonts/X11/100dpi"
45 ln -s ../../truetype/ttf-dejavu/* .
46 fi
48 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
49 # Adding WM to SLIM available sessions.
50 if ! echo "$res" | grep -q $PACKAGE; then
51 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
52 fi
53 }
55 post_remove() {
56 # Remove WM from SLIM available sessions.
57 if grep -q $PACKAGE "$1/etc/slim.conf"; then
58 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
59 fi
60 }