wok view pekwm/receipt @ rev 24751
cairo-gl: modified lookup-symbol.c for binutils-2.37
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 17:24:41 2022 +0100 (2022-03-16) |
parents | 5ea0ce1cecc0 |
children | d521a8fdb812 |
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 automake"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./autogen.sh &&
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin
41 mkdir -p $fs/usr/share/pekwm
42 mkdir -p $fs/etc
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/share/pekwm $fs/usr/share
46 cp -a $install/etc $fs
48 # Custom configuration files and scripts
49 cp -a $stuff/etc $fs
50 cp -a $stuff/scripts $fs/usr/share/pekwm
52 # Set permissions
53 chown -R root.root $fs
54 chmod +x $fs/etc/pekwm/start
55 chmod +x $fs/usr/share/pekwm/scripts/*
56 chmod 0755 $fs/usr/bin/pekwm
57 }
59 post_install()
60 {
61 # Pekwm searches for default font path (100dpi folder) for xserver to render
62 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
63 # by linking to ttf-dejavu
64 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then
65 mkdir -p "$1/usr/share/fonts/X11/100dpi"
66 cd "$1/usr/share/fonts/X11/100dpi"
67 ln -s ../../truetype/ttf-dejavu/* .
68 fi
70 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
71 # Adding WM to SLIM available sessions.
72 if ! echo "$res" | grep -q $PACKAGE; then
73 echo
74 echo -n "Adding $PACKAGE to /etc/slim.conf..."
75 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
76 status
77 fi
78 }
80 post_remove()
81 {
82 # Remove WM from SLIM available sessions.
83 if grep -q $PACKAGE "$1/etc/slim.conf"; then
84 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
85 fi
86 }