wok rev 24370

updated blackbox and blackbox-lang (0.75 -> 0.77)
author Hans-G?nter Theisgen
date Sat Feb 05 14:51:40 2022 +0100 (2022-02-05)
parents 722a7395fdec
children c21515fa6481
files blackbox-lang/receipt blackbox/receipt
line diff
     1.1 --- a/blackbox-lang/receipt	Sat Feb 05 09:26:55 2022 +0100
     1.2 +++ b/blackbox-lang/receipt	Sat Feb 05 14:51:40 2022 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="blackbox-lang"
     1.7 -VERSION="0.75"
     1.8 +VERSION="0.77"
     1.9  CATEGORY="x-window"
    1.10  TAGS="window-manager"
    1.11  SHORT_DESC="A small, fast, full-featured window manager for X - localised messages."
     2.1 --- a/blackbox/receipt	Sat Feb 05 09:26:55 2022 +0100
     2.2 +++ b/blackbox/receipt	Sat Feb 05 14:51:40 2022 +0100
     2.3 @@ -1,23 +1,22 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="blackbox"
     2.7 -VERSION="0.75"
     2.8 +VERSION="0.77"
     2.9  CATEGORY="x-window"
    2.10  TAGS="window-manager"
    2.11  SHORT_DESC="A small, fast, full-featured window manager for X."
    2.12  MAINTAINER="devl547@gmail.com"
    2.13  LICENSE="MIT"
    2.14  WEB_SITE="https://github.com/bbidulock/blackboxwm"
    2.15 +REPOLOGY="blackbox-wm"
    2.16  
    2.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.18  WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
    2.19  
    2.20 -DEPENDS="gcc83-lib-base xorg-libXft xorg-libXt"
    2.21 -BUILD_DEPENDS="autoconf automake gcc83 libtool libxml2-dev 
    2.22 -	xorg-libXft-dev xorg-libXt-dev xorg-xextproto"
    2.23 -
    2.24 -# TODO: modify tazx for blackbox so it will creat a correct ~/.xinitrc
    2.25 -# to let user use the wm via slim/F1 or by default with 'tazx blackbox'.
    2.26 +SUGGESTED="blackbox-lang"
    2.27 +DEPENDS="xorg-libXft xorg-libXt"
    2.28 +BUILD_DEPENDS="autoconf automake gcc83 libtool libxml2-dev xorg-libXft-dev 
    2.29 +	xorg-libXt-dev xorg-xextproto"
    2.30  
    2.31  current_version()
    2.32  {
    2.33 @@ -40,7 +39,7 @@
    2.34  		--libexecdir=/usr/bin	\
    2.35  		--mandir=/usr/share/man	\
    2.36  		$CONFIGURE_ARGS &&
    2.37 -	make -j 4 &&
    2.38 +	make &&
    2.39  	make DESTDIR=$DESTDIR install
    2.40  }
    2.41  
    2.42 @@ -51,4 +50,27 @@
    2.43  
    2.44  	cp -a $install/usr/bin			$fs/usr
    2.45  	cp -a $install/usr/share/blackbox	$fs/usr/share
    2.46 +
    2.47 +	# menu suitable for SliTaz
    2.48 +	cp -a $stuff/menu			$fs/usr/share/blackbox
    2.49  }
    2.50 +
    2.51 +post_install()
    2.52 +{
    2.53 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
    2.54 +	# Add window manager to SLIM available sessions.
    2.55 +	if ! echo "$res" | grep -q $PACKAGE
    2.56 +	  then
    2.57 +		sed -i	"s|^sessions.*|sessions            ${res},$PACKAGE|" \
    2.58 +			"$1/etc/slim.conf"
    2.59 +	fi
    2.60 +}
    2.61 +
    2.62 +post_remove()
    2.63 +{
    2.64 +	# Remove window manager from SLIM available sessions.
    2.65 +	if grep -q $PACKAGE "$1/etc/slim.conf"
    2.66 +	  then
    2.67 +		sed -i "s|,$PACKAGE||" "$1/etc/slim.conf"
    2.68 +	fi
    2.69 +}