wok-next annotate pekwm/receipt @ rev 21257

encfs: use cmake
author Hans-G?nter Theisgen
date Fri Dec 06 13:47:57 2019 +0100 (2019-12-06)
parents d5aab818505e
children
rev   line source
al@20534 1 # SliTaz package receipt v2.
jozee@2875 2
jozee@2875 3 PACKAGE="pekwm"
slaxemulator@11052 4 VERSION="0.1.13"
jozee@2875 5 CATEGORY="x-window"
al@20534 6 SHORT_DESC="Very light, configurable and themable window manager for X"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15375 8 LICENSE="GPL2"
al@20534 9 WEB_SITE="http://www.pekwm.org/projects/pekwm"
al@20534 10
slaxemulator@11052 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@5613 12 WGET_URL="$WEB_SITE/files/$TARBALL"
jozee@2875 13
pascal@15375 14 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev"
pascal@15375 15
al@20534 16 compile_rules() {
al@20534 17 ./configure $CONFIGURE_ARGS &&
pankso@2878 18 make &&
al@21020 19 make DESTDIR=$install install || return 1
al@20534 20
al@20534 21 # Custom configuration files and scripts
al@20534 22 cp -r $stuff/etc $install
al@20534 23 cp -r $stuff/scripts $install/usr/share/pekwm/
al@20534 24
al@20534 25 # Set perms.
al@20534 26 chown -R root:root $install
al@21020 27 chmod +x $install/etc/pekwm/start
al@21020 28 chmod +x $install/usr/share/pekwm/scripts/*
jozee@2875 29 }
jozee@2875 30
al@20534 31 genpkg_rules() {
al@20534 32 copy @std
al@21078 33 DEPENDS="libx11 libxinerama libxft libxrandr libxpm"
al@21078 34 SUGGESTED="hsetroot tint2 lxpanel wbar xprop xev xdotool wmctrl"
al@20534 35 TAGS="window-manager"
jozee@2875 36 }
jozee@2875 37
al@20534 38 post_install() {
al@21020 39 # Pekwm searches for default font path (100dpi folder) for xsever to render
al@21020 40 # menus; either manually set it in .xinitrc or fake 100dpi folder fonts
pankso@2878 41 # by linking to ttf-dejavu
pascal@18730 42 if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then
pascal@18730 43 mkdir -p "$1/usr/share/fonts/X11/100dpi"
pascal@18730 44 cd "$1/usr/share/fonts/X11/100dpi"
pankso@2878 45 ln -s ../../truetype/ttf-dejavu/* .
pankso@2878 46 fi
al@21020 47
pascal@18730 48 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
jozee@2875 49 # Adding WM to SLIM available sessions.
jozee@2875 50 if ! echo "$res" | grep -q $PACKAGE; then
al@21020 51 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf"
jozee@2875 52 fi
jozee@2875 53 }
jozee@2875 54
al@20534 55 post_remove() {
pankso@2878 56 # Remove WM from SLIM available sessions.
pascal@18730 57 if grep -q $PACKAGE "$1/etc/slim.conf"; then
pascal@18730 58 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
jozee@2875 59 fi
jozee@2875 60 }