wok-next diff awesome/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 82b613cfd1e0
children
line diff
     1.1 --- a/awesome/receipt	Fri Jan 04 17:29:48 2019 +0200
     1.2 +++ b/awesome/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -1,55 +1,60 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="awesome"
     1.7 -VERSION="4.2"
     1.8 +VERSION="4.3"
     1.9  CATEGORY="x-window"
    1.10 +TAGS="window-manager"
    1.11  SHORT_DESC="Highly configurable framework window manager"
    1.12 -MAINTAINER="devel@slitaz.org"
    1.13 +MAINTAINER="maintainer@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15  WEB_SITE="https://awesomewm.org/"
    1.16  
    1.17  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.18  WGET_URL="https://github.com/awesomeWM/awesome-releases/raw/master/$TARBALL"
    1.19  
    1.20 -BUILD_DEPENDS="cmake asciidoc xmlto docbook-xsl imagemagick lua-dev \
    1.21 -libxcb-dev glib-dev gdk-pixbuf-dev cairo-dev xcb-util-cursor-dev \
    1.22 -xcb-util-dev xcb-util-keysyms-dev xcb-util-wm-dev \
    1.23 -libxkbcommon-dev startup-notification-dev libxdg-basedir-dev xcb-util-xrm-dev \
    1.24 -dbus-dev lgi pango-dev"
    1.25 +BUILD_DEPENDS="asciidoc cairo-dev cmake dbus-dev docbook-xsl gdk-pixbuf-dev 
    1.26 +	glib-dev imagemagick lgi libxcb-dev libxdg-basedir-dev libxkbcommon-dev 
    1.27 +	lua-dev pango-dev startup-notification-dev xcb-util-cursor-dev xcb-util-dev 
    1.28 +	xcb-util-keysyms-dev xcb-util-wm-dev xcb-util-xrm-dev xmlto"
    1.29  
    1.30 -compile_rules() {
    1.31 +compile_rules()
    1.32 +{
    1.33  	mkdir build
    1.34  	cd    build
    1.35 -	cmake \
    1.36 -		-DCMAKE_BUILD_TYPE=RELEASE \
    1.37 -		-DCMAKE_INSTALL_PREFIX=/usr \
    1.38 -		-DSYSCONFDIR=/etc \
    1.39 -		-DLUA_LIBRARY=/usr/lib/liblua.so \
    1.40 -		.. &&
    1.41 +	cmake	..				\
    1.42 +		-DCMAKE_BUILD_TYPE=RELEASE	\
    1.43 +		-DCMAKE_INSTALL_PREFIX=/usr	\
    1.44 +		-DSYSCONFDIR=/etc		\
    1.45 +		-DLUA_LIBRARY=/usr/lib/liblua.so &&
    1.46  	make &&
    1.47  	make install
    1.48  }
    1.49  
    1.50 -genpkg_rules() {
    1.51 +genpkg_rules()
    1.52 +{
    1.53  	copy @std
    1.54 -	DEPENDS="libcairo dbus gdk-pixbuf glib liblua libxdg-basedir libxkbcommon-x11 \
    1.55 -	libxkbcommon startup-notification xcb-util-xrm libx11 libxcb \
    1.56 -	xcb-util xcb-util-cursor xcb-util-keysyms xcb-util-wm \
    1.57 -	   pango-typelib lgi"
    1.58 -	TAGS="window-manager"
    1.59 +
    1.60 +	DEPENDS="dbus gdk-pixbuf glib lgi libcairo liblua libx11 libxcb libxdg-basedir 
    1.61 +		libxkbcommon libxkbcommon-x11 pango-typelib startup-notification 
    1.62 +		xcb-util xcb-util-cursor xcb-util-keysyms xcb-util-wm xcb-util-xrm"
    1.63  }
    1.64  
    1.65  # Adding WM to SLIM available sessions.
    1.66 -post_install() {
    1.67 +post_install()
    1.68 +{
    1.69  	res=$(cat "$1/etc/slim.conf" | grep '^session' | sed 's|sessions. *||')
    1.70 -	if ! echo "$res" | grep -q $PACKAGE; then
    1.71 -		sed -i "s/^sessions.*/sessions            $res,$PACKAGE/" "$1/etc/slim.conf"
    1.72 +	if ! echo "$res" | grep -q $PACKAGE
    1.73 +	  then
    1.74 +		sed -i "s/^sessions.*/sessions            $res,$PACKAGE/" \
    1.75 +			"$1/etc/slim.conf"
    1.76  	fi
    1.77  }
    1.78  
    1.79  # Remove WM from SLIM available sessions.
    1.80 -post_remove() {
    1.81 -	if grep -q $PACKAGE "$1/etc/slim.conf"; then
    1.82 +post_remove()
    1.83 +{
    1.84 +	if grep -q $PACKAGE "$1/etc/slim.conf"
    1.85 +	  then
    1.86  		sed -i "s|,$PACKAGE||" "$1/etc/slim.conf"
    1.87  	fi
    1.88  }