# HG changeset patch # User Paul Issott # Date 1523078687 -3600 # Node ID 98651ed84ba415f3a2b1a4f99f10bedbd97ee62f # Parent 326496a6389f2a5143e7f01e636f8b1bd06d8231 Add fvwm (thanks aledie) diff -r 326496a6389f -r 98651ed84ba4 fvwm/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fvwm/receipt Sat Apr 07 06:24:47 2018 +0100 @@ -0,0 +1,47 @@ +# SliTaz package receipt. + +PACKAGE="fvwm" +VERSION="2.6.7" +CATEGORY="x-window" +SHORT_DESC="FVWM is an extremely powerful ICCCM-compliant multiple virtual desktop window manager for the X Window system." +MAINTAINER="aledie@slitaz.org" +LICENSE="GPL2" +WEB_SITE="http://www.fvwm.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/fvwmorg/fvwm/releases/download/$VERSION/$TARBALL" +TAGS="window-manager" + +DEPENDS="bzlib cairo fontconfig freetype fribidi glib harfbuzz libffi libpng libpng+apng librsvg libstroke libxcb libxml2 ossp-uuid pcre pixman xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXft xorg-libXinerama xorg-libXpm xorg-libXrender zlib readline" +BUILD_DEPENDS="slitaz-toolchain slitaz-dev-pkgs cairo-dev fontconfig-dev freetype-dev fribidi-dev glib-dev harfbuzz-dev libffi-dev libpng-dev libpng+apng-dev librsvg-dev libstroke-dev libxcb-dev libxml2-dev ossp-uuid-dev pcre-dev pixman-dev xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev xorg-libXau-dev xorg-libXcursor-dev xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev xorg-libXft-dev xorg-libXinerama-dev xorg-libXpm-dev xorg-libXrender-dev zlib-dev readline-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure $CONFIGURE_ARGS && make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs +} + +post_install() +{ + res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) + # Adding WM to SLIM available sessions. + if ! echo "$res" | grep -q $PACKAGE; then + echo -n "Adding $PACKAGE to /etc/slim.conf..." + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" + status + fi +} + +post_remove() +{ + # Remove WM from SLIM available sessions. + if grep -q $PACKAGE "$1/etc/slim.conf"; then + sed -i s/,$PACKAGE// "$1/etc/slim.conf" + fi +} +