wok annotate pekwm/receipt @ rev 25438

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 01 11:12:31 2022 +0000 (22 months ago)
parents 35b57cb1532a
children 0262035dc1e7
rev   line source
jozee@2875 1 # SliTaz package receipt.
jozee@2875 2
jozee@2875 3 PACKAGE="pekwm"
Hans-G?nter@25120 4 VERSION="0.2.1"
jozee@2875 5 CATEGORY="x-window"
Hans-G?nter@21673 6 TAGS="window-manager"
pankso@2878 7 SHORT_DESC="Very light, configurable and themable window manager for X."
jozee@2875 8 MAINTAINER="jozee@slitaz.org"
pascal@15375 9 LICENSE="GPL2"
Hans-G?nter@25120 10 WEB_SITE="https://www.pekwm.se/"
Hans-G?nter@21673 11
Hans-G?nter@21673 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21673 13 WGET_URL="https://github.com/pekdon/$PACKAGE/archive/release-$VERSION.tar.gz"
Hans-G?nter@21673 14
Hans-G?nter@25120 15 SUGGESTED="hsetroot lxpanel tint2 wbar wmctrl xdotool xorg-xev xorg-xprop"
Hans-G?nter@25120 16 DEPENDS="xorg-libX11 xorg-libXft xorg-libXinerama xorg-libXpm xorg-libXrandr"
Hans-G?nter@25120 17 BUILD_DEPENDS="cmake xorg-dev xorg-dev-proto zlib-dev"
pascal@15375 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
jozee@2875 25 # Rules to configure and make the package.
jozee@2875 26 compile_rules()
jozee@2875 27 {
Hans-G?nter@25120 28 mkdir _build
Hans-G?nter@25120 29 cd _build
Hans-G?nter@25120 30 cmake .. \
Hans-G?nter@25120 31 -D CMAKE_INSTALL_PREFIX=/usr &&
pankso@2878 32 make &&
Hans-G?nter@25120 33 make install DESTDIR=$DESTDIR
jozee@2875 34 }
jozee@2875 35
jozee@2875 36 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2875 37 genpkg_rules()
jozee@2875 38 {
Hans-G?nter@25120 39 mkdir -p $fs/usr/share
Hans-G?nter@21673 40
Hans-G?nter@25120 41 cp -a $install/etc $fs
Hans-G?nter@21673 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21673 43 cp -a $install/usr/share/pekwm $fs/usr/share
Hans-G?nter@21673 44
pankso@2880 45 # Custom configuration files and scripts
Hans-G?nter@21673 46 cp -a $stuff/etc $fs
Hans-G?nter@21673 47 cp -a $stuff/scripts $fs/usr/share/pekwm
Hans-G?nter@21673 48
Hans-G?nter@21673 49 # Set permissions
Hans-G?nter@25120 50 chown -R root.root $fs
Hans-G?nter@25120 51 chmod +x $fs/etc/pekwm/start
Hans-G?nter@25120 52 chmod +x $fs/usr/share/pekwm/scripts/*
Hans-G?nter@25120 53 chmod 0755 $fs/usr/bin/pekwm
jozee@2875 54 }
jozee@2875 55
jozee@2875 56 post_install()
jozee@2875 57 {
Hans-G?nter@21673 58 # Pekwm searches for default font path (100dpi folder) for xserver to render
pankso@2878 59 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
pankso@2878 60 # by linking to ttf-dejavu
Hans-G?nter@25120 61 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]
Hans-G?nter@25120 62 then
pascal@18730 63 mkdir -p "$1/usr/share/fonts/X11/100dpi"
pascal@18730 64 cd "$1/usr/share/fonts/X11/100dpi"
pankso@2878 65 ln -s ../../truetype/ttf-dejavu/* .
pankso@2878 66 fi
Hans-G?nter@25120 67
pascal@18730 68 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
Hans-G?nter@25120 69 # Adding window manager to SLIM available sessions.
Hans-G?nter@25120 70 if ! echo "$res" | grep -q $PACKAGE
Hans-G?nter@25120 71 then
pascal@20319 72 echo
jozee@2875 73 echo -n "Adding $PACKAGE to /etc/slim.conf..."
Hans-G?nter@25120 74 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
Hans-G?nter@25120 75 "$1/etc/slim.conf"
jozee@2875 76 status
jozee@2875 77 fi
jozee@2875 78 }
jozee@2875 79
jozee@2875 80 post_remove()
jozee@2875 81 {
Hans-G?nter@25120 82 # Remove window manager from SLIM available sessions.
Hans-G?nter@25120 83 if grep -q $PACKAGE "$1/etc/slim.conf"
Hans-G?nter@25120 84 then
pascal@18730 85 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
jozee@2875 86 fi
jozee@2875 87 }