wok annotate pekwm/receipt @ rev 24797

updated libhtp and libhtp-dev (0.5.32 -> 0.5.39)
author Hans-G?nter Theisgen
date Mon Mar 21 17:10:45 2022 +0100 (2022-03-21)
parents 5ea0ce1cecc0
children d521a8fdb812
rev   line source
jozee@2875 1 # SliTaz package receipt.
jozee@2875 2
jozee@2875 3 PACKAGE="pekwm"
Hans-G?nter@21673 4 VERSION="0.1.17"
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"
pascal@23838 10 WEB_SITE="https://www.pekwm.org/"
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
jozee@3027 15 SUGGESTED="hsetroot tint2 lxpanel wbar xorg-xprop xorg-xev xdotool wmctrl"
pascal@15375 16 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm"
pascal@24058 17 BUILD_DEPENDS="libtool xorg-dev xorg-dev-proto zlib-dev automake"
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@21673 28 ./autogen.sh &&
Hans-G?nter@21673 29 ./configure \
Hans-G?nter@21673 30 --prefix=/usr \
Hans-G?nter@21673 31 --sysconfdir=/etc \
Hans-G?nter@21673 32 $CONFIGURE_ARGS &&
pankso@2878 33 make &&
slaxemulator@11052 34 make DESTDIR=$DESTDIR install
jozee@2875 35 }
jozee@2875 36
jozee@2875 37 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2875 38 genpkg_rules()
jozee@2875 39 {
Hans-G?nter@21673 40 mkdir -p $fs/usr/bin
Hans-G?nter@21673 41 mkdir -p $fs/usr/share/pekwm
Hans-G?nter@21673 42 mkdir -p $fs/etc
Hans-G?nter@21673 43
Hans-G?nter@21673 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21673 45 cp -a $install/usr/share/pekwm $fs/usr/share
Hans-G?nter@21673 46 cp -a $install/etc $fs
Hans-G?nter@21673 47
pankso@2880 48 # Custom configuration files and scripts
Hans-G?nter@21673 49 cp -a $stuff/etc $fs
Hans-G?nter@21673 50 cp -a $stuff/scripts $fs/usr/share/pekwm
Hans-G?nter@21673 51
Hans-G?nter@21673 52 # Set permissions
jozee@2875 53 chown -R root.root $fs
pankso@2878 54 chmod +x $fs/etc/pekwm/start
pankso@2878 55 chmod +x $fs/usr/share/pekwm/scripts/*
jozee@2875 56 chmod 0755 $fs/usr/bin/pekwm
jozee@2875 57 }
jozee@2875 58
jozee@2875 59 post_install()
jozee@2875 60 {
Hans-G?nter@21673 61 # Pekwm searches for default font path (100dpi folder) for xserver to render
pankso@2878 62 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
pankso@2878 63 # by linking to ttf-dejavu
pascal@18730 64 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then
pascal@18730 65 mkdir -p "$1/usr/share/fonts/X11/100dpi"
pascal@18730 66 cd "$1/usr/share/fonts/X11/100dpi"
pankso@2878 67 ln -s ../../truetype/ttf-dejavu/* .
pankso@2878 68 fi
jozee@2875 69
pascal@18730 70 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
jozee@2875 71 # Adding WM to SLIM available sessions.
jozee@2875 72 if ! echo "$res" | grep -q $PACKAGE; then
pascal@20319 73 echo
jozee@2875 74 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pascal@18730 75 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$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 {
pankso@2878 82 # Remove WM from SLIM available sessions.
pascal@18730 83 if grep -q $PACKAGE "$1/etc/slim.conf"; then
pascal@18730 84 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
jozee@2875 85 fi
jozee@2875 86 }