wok-undigest rev 1212

Add windowmaker (thanks aledie)
author Paul Issott <paul@slitaz.org>
date Sat Mar 10 13:42:46 2018 +0000 (2018-03-10)
parents 0535d384bf23
children 7d6370696d8b
files windowmaker/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/windowmaker/receipt	Sat Mar 10 13:42:46 2018 +0000
     1.3 @@ -0,0 +1,50 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="windowmaker"
     1.7 +VERSION="0.95.8"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="An X11 window manager with a NEXTSTEP look and feel"
    1.10 +MAINTAINER="aledie@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="http://windowmaker.org"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WGET_URL="$WEB_SITE/pub/source/release/$TARBALL"
    1.15 +TAGS="window-manager"
    1.16 +
    1.17 +LOCALES="en en_US de es fr it pt ru zh_CN zh_TW"
    1.18 +
    1.19 +SUGGESTED="xfe aterm"
    1.20 +DEPENDS="xorg-libXinerama xorg-libXrandr xorg-libXmu libpng xorg-libXpm xorg-libXft tiff jpeg libjpeg giflib libexif"
    1.21 +BUILD_DEPENDS="slitaz-toolchain slitaz-dev-pkgs util-linux-uuid-dev xorg-libXinerama-dev xorg-libXrandr-dev xorg-libXmu-dev xorg-libXpm-dev xorg-libXft-dev giflib-dev libexif-dev"
    1.22 +
    1.23 +# Rules to configure and make the package.
    1.24 +compile_rules()
    1.25 +{
    1.26 +	./configure $CONFIGURE_ARGS && make && make install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	cp -a $install/* $fs
    1.33 +}
    1.34 +
    1.35 +post_install()
    1.36 +{
    1.37 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
    1.38 +	# Adding WM to SLIM available sessions.
    1.39 +	if ! echo "$res" | grep -q wmaker; then
    1.40 +		echo -n "Adding wmaker to /etc/slim.conf..."
    1.41 +		sed -i "s/^sessions.*/sessions            ${res},wmaker/" "$1/etc/slim.conf"
    1.42 +		status
    1.43 +	fi
    1.44 +}
    1.45 +
    1.46 +post_remove()
    1.47 +{
    1.48 +	# Remove WM from SLIM available sessions.
    1.49 +	if grep -q wmaker "$1/etc/slim.conf"; then
    1.50 +		sed -i s/,wmaker// "$1/etc/slim.conf"
    1.51 +	fi
    1.52 +}
    1.53 +