# HG changeset patch # User Hans-G?nter Theisgen # Date 1644069100 -3600 # Node ID 6f7c7009cd62872033b889c108832345fd5f466c # Parent 722a7395fdeccd6f76d079019f4d13f52b8eeacf updated blackbox and blackbox-lang (0.75 -> 0.77) diff -r 722a7395fdec -r 6f7c7009cd62 blackbox-lang/receipt --- a/blackbox-lang/receipt Sat Feb 05 09:26:55 2022 +0100 +++ b/blackbox-lang/receipt Sat Feb 05 14:51:40 2022 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="blackbox-lang" -VERSION="0.75" +VERSION="0.77" CATEGORY="x-window" TAGS="window-manager" SHORT_DESC="A small, fast, full-featured window manager for X - localised messages." diff -r 722a7395fdec -r 6f7c7009cd62 blackbox/receipt --- a/blackbox/receipt Sat Feb 05 09:26:55 2022 +0100 +++ b/blackbox/receipt Sat Feb 05 14:51:40 2022 +0100 @@ -1,23 +1,22 @@ # SliTaz package receipt. PACKAGE="blackbox" -VERSION="0.75" +VERSION="0.77" CATEGORY="x-window" TAGS="window-manager" SHORT_DESC="A small, fast, full-featured window manager for X." MAINTAINER="devl547@gmail.com" LICENSE="MIT" WEB_SITE="https://github.com/bbidulock/blackboxwm" +REPOLOGY="blackbox-wm" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" -DEPENDS="gcc83-lib-base xorg-libXft xorg-libXt" -BUILD_DEPENDS="autoconf automake gcc83 libtool libxml2-dev - xorg-libXft-dev xorg-libXt-dev xorg-xextproto" - -# TODO: modify tazx for blackbox so it will creat a correct ~/.xinitrc -# to let user use the wm via slim/F1 or by default with 'tazx blackbox'. +SUGGESTED="blackbox-lang" +DEPENDS="xorg-libXft xorg-libXt" +BUILD_DEPENDS="autoconf automake gcc83 libtool libxml2-dev xorg-libXft-dev + xorg-libXt-dev xorg-xextproto" current_version() { @@ -40,7 +39,7 @@ --libexecdir=/usr/bin \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && - make -j 4 && + make && make DESTDIR=$DESTDIR install } @@ -51,4 +50,27 @@ cp -a $install/usr/bin $fs/usr cp -a $install/usr/share/blackbox $fs/usr/share + + # menu suitable for SliTaz + cp -a $stuff/menu $fs/usr/share/blackbox } + +post_install() +{ + res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) + # Add window manager to SLIM available sessions. + if ! echo "$res" | grep -q $PACKAGE + then + sed -i "s|^sessions.*|sessions ${res},$PACKAGE|" \ + "$1/etc/slim.conf" + fi +} + +post_remove() +{ + # Remove window manager from SLIM available sessions. + if grep -q $PACKAGE "$1/etc/slim.conf" + then + sed -i "s|,$PACKAGE||" "$1/etc/slim.conf" + fi +}