wok rev 24050

updated i3 and i3-man (4.5.1 -> 4.19.2)
author Hans-G?nter Theisgen
date Thu May 13 14:58:33 2021 +0100 (2021-05-13)
parents 7bea68e23e6b
children 324b3fa82b76
files i3-man/receipt i3/description.txt i3/receipt
line diff
     1.1 --- a/i3-man/receipt	Mon May 10 20:32:02 2021 +0000
     1.2 +++ b/i3-man/receipt	Thu May 13 14:58:33 2021 +0100
     1.3 @@ -1,12 +1,13 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="i3-man"
     1.7 -VERSION="4.5.1"
     1.8 +VERSION="4.19.2"
     1.9  CATEGORY="x-window"
    1.10 -SHORT_DESC="i3 tiling window manager man pages"
    1.11 +SHORT_DESC="i3 tiling window manager - man pages."
    1.12  MAINTAINER="ybringler@gmail.com"
    1.13  LICENSE="BSD"
    1.14  WEB_SITE="https://i3wm.org"
    1.15 +
    1.16  WANTED="i3"
    1.17  
    1.18  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 @@ -14,7 +15,5 @@
    1.20  genpkg_rules()
    1.21  {
    1.22  	mkdir -p $fs/usr/share/man
    1.23 -	for i in $src/man/*.man; do
    1.24 -		cp $i $fs/usr/share/man/raw-${i##*/}
    1.25 -	done
    1.26 +	cp -a $install/usr/share/man/man1	$fs/usr/share/man
    1.27  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/i3/description.txt	Thu May 13 14:58:33 2021 +0100
     2.3 @@ -0,0 +1,3 @@
     2.4 +i3 is a tiling window manager, completely written from scratch.
     2.5 +The target platforms are GNU/Linux and BSD operating systems.
     2.6 +i3 is primarily targeted at advanced users and developers.
     3.1 --- a/i3/receipt	Mon May 10 20:32:02 2021 +0000
     3.2 +++ b/i3/receipt	Thu May 13 14:58:33 2021 +0100
     3.3 @@ -1,30 +1,68 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="i3"
     3.7 -VERSION="4.5.1"
     3.8 +VERSION="4.19.2"
     3.9  CATEGORY="x-window"
    3.10 -SHORT_DESC="i3 tiling window manager"
    3.11 +SHORT_DESC="i3 tiling window manager."
    3.12  MAINTAINER="ybringler@gmail.com"
    3.13  LICENSE="BSD"
    3.14  WEB_SITE="https://i3wm.org"
    3.15 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.16 +
    3.17 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.18  WGET_URL="$WEB_SITE/downloads/$TARBALL"
    3.19  
    3.20 -DEPENDS="libxcb xorg-libXcursor xorg-libX11 yajl libev dmenu \
    3.21 -startup-notification xcb-util"
    3.22 -BUILD_DEPENDS="make gcc pkg-config xcb-proto libxcb-dev xcb-util-dev \
    3.23 -libev-dev flex bison yajl t2 docbook-xml xorg-libXcursor-dev xorg-libX11-dev \
    3.24 -pcre-dev startup-notification-dev xcb-util-keysyms-dev xcb-util-wm-dev pango-dev"
    3.25 +DEPENDS="dmenu gcc83-lib-base libev libxcb libxkbcommon 
    3.26 +	startup-notification xcb-util xcb-util-cursor xcb-util-image 
    3.27 +	xcb-util-keysyms xcb-util-renderutil xcb-util-wm xcb-util-xrm 
    3.28 +	xorg-libX11 xorg-libXcursor yajl"
    3.29 +BUILD_DEPENDS="docbook-xml gcc83 libev-dev libxcb-dev libxkbcommon-dev 
    3.30 +	meson ninja pango-dev pcre-dev pkg-config startup-notification-dev 
    3.31 +	xcb-util-cursor-dev xcb-util-dev xcb-util-image-dev 
    3.32 +	xcb-util-keysyms-dev xcb-util-renderutil-dev xcb-util-wm-dev 
    3.33 +	xcb-util-xrm-dev xorg-libX11-dev xorg-libXcursor-dev yajl"
    3.34  
    3.35  # Rules to configure and make the package.
    3.36  compile_rules()
    3.37  {
    3.38 -	make && make install
    3.39 +	export	CC=gcc-83
    3.40 +	meson	.		\
    3.41 +		_build		\
    3.42 +		--prefix=/usr &&
    3.43 +	ninja -C _build &&
    3.44 +	ninja -C _build install
    3.45  }
    3.46  
    3.47  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.48  
    3.49  genpkg_rules()
    3.50  {
    3.51 -	cp -a $install/* $fs
    3.52 +	mkdir -p $fs/usr/share
    3.53 +
    3.54 +	cp -a $install/etc			$fs
    3.55 +	cp -a $install/usr/bin			$fs/usr
    3.56 +	cp -a $install/usr/share/applications	$fs/usr/share
    3.57 +	cp -a $install/usr/share/xsessions	$fs/usr/share
    3.58  }
    3.59 +
    3.60 +post_install()
    3.61 +{
    3.62 +	# Add WM to SLIM available sessions.
    3.63 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
    3.64 +	if ! echo "$res" | grep -q $PACKAGE
    3.65 +	  then
    3.66 +		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    3.67 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" \
    3.68 +			"$1/etc/slim.conf"
    3.69 +		status
    3.70 +	fi
    3.71 +	true
    3.72 +}
    3.73 +
    3.74 +post_remove()
    3.75 +{
    3.76 +	# Remove WM from SLIM available sessions.
    3.77 +	if grep -q $PACKAGE "$1/etc/slim.conf"
    3.78 +	  then
    3.79 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
    3.80 +	fi
    3.81 +}