wok diff blackbox/receipt @ rev 24376
created recipes for libboost-locale and libboost-locale-dev
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 06 09:40:33 2022 +0100 (2022-02-06) |
parents | d8c28080cd55 |
children | 343c093ad221 |
line diff
1.1 --- a/blackbox/receipt Wed Sep 29 20:50:54 2021 +0000 1.2 +++ b/blackbox/receipt Sun Feb 06 09:40:33 2022 +0100 1.3 @@ -1,23 +1,22 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="blackbox" 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." 1.12 MAINTAINER="devl547@gmail.com" 1.13 LICENSE="MIT" 1.14 WEB_SITE="https://github.com/bbidulock/blackboxwm" 1.15 +REPOLOGY="blackbox-wm" 1.16 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" 1.19 1.20 -DEPENDS="gcc83-lib-base xorg-libXft xorg-libXt" 1.21 -BUILD_DEPENDS="autoconf automake gcc83 libtool libxml2-dev 1.22 - xorg-libXft-dev xorg-libXt-dev xorg-xextproto" 1.23 - 1.24 -# TODO: modify tazx for blackbox so it will creat a correct ~/.xinitrc 1.25 -# to let user use the wm via slim/F1 or by default with 'tazx blackbox'. 1.26 +SUGGESTED="blackbox-lang" 1.27 +DEPENDS="xorg-libXft xorg-libXt" 1.28 +BUILD_DEPENDS="autoconf automake gcc83 libtool libxml2-dev xorg-libXft-dev 1.29 + xorg-libXt-dev xorg-xextproto" 1.30 1.31 current_version() 1.32 { 1.33 @@ -40,7 +39,7 @@ 1.34 --libexecdir=/usr/bin \ 1.35 --mandir=/usr/share/man \ 1.36 $CONFIGURE_ARGS && 1.37 - make -j 4 && 1.38 + make && 1.39 make DESTDIR=$DESTDIR install 1.40 } 1.41 1.42 @@ -51,4 +50,27 @@ 1.43 1.44 cp -a $install/usr/bin $fs/usr 1.45 cp -a $install/usr/share/blackbox $fs/usr/share 1.46 + 1.47 + # menu suitable for SliTaz 1.48 + cp -a $stuff/menu $fs/usr/share/blackbox 1.49 } 1.50 + 1.51 +post_install() 1.52 +{ 1.53 + res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) 1.54 + # Add window manager to SLIM available sessions. 1.55 + if ! echo "$res" | grep -q $PACKAGE 1.56 + then 1.57 + sed -i "s|^sessions.*|sessions ${res},$PACKAGE|" \ 1.58 + "$1/etc/slim.conf" 1.59 + fi 1.60 +} 1.61 + 1.62 +post_remove() 1.63 +{ 1.64 + # Remove window manager from SLIM available sessions. 1.65 + if grep -q $PACKAGE "$1/etc/slim.conf" 1.66 + then 1.67 + sed -i "s|,$PACKAGE||" "$1/etc/slim.conf" 1.68 + fi 1.69 +}