wok-next annotate 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
rev   line source
al@20804 1 # SliTaz package receipt v2.
mallory@2687 2
mallory@2687 3 PACKAGE="awesome"
Hans-G?nter@21474 4 VERSION="4.3"
mallory@2687 5 CATEGORY="x-window"
Hans-G?nter@21474 6 TAGS="window-manager"
al@16697 7 SHORT_DESC="Highly configurable framework window manager"
Hans-G?nter@21474 8 MAINTAINER="maintainer@slitaz.org"
pascal@15128 9 LICENSE="GPL2"
al@20804 10 WEB_SITE="https://awesomewm.org/"
al@20804 11
slaxemulator@12865 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@20804 13 WGET_URL="https://github.com/awesomeWM/awesome-releases/raw/master/$TARBALL"
mallory@2687 14
Hans-G?nter@21474 15 BUILD_DEPENDS="asciidoc cairo-dev cmake dbus-dev docbook-xsl gdk-pixbuf-dev
Hans-G?nter@21474 16 glib-dev imagemagick lgi libxcb-dev libxdg-basedir-dev libxkbcommon-dev
Hans-G?nter@21474 17 lua-dev pango-dev startup-notification-dev xcb-util-cursor-dev xcb-util-dev
Hans-G?nter@21474 18 xcb-util-keysyms-dev xcb-util-wm-dev xcb-util-xrm-dev xmlto"
pankso@9792 19
Hans-G?nter@21474 20 compile_rules()
Hans-G?nter@21474 21 {
al@20804 22 mkdir build
al@20804 23 cd build
Hans-G?nter@21474 24 cmake .. \
Hans-G?nter@21474 25 -DCMAKE_BUILD_TYPE=RELEASE \
Hans-G?nter@21474 26 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@21474 27 -DSYSCONFDIR=/etc \
Hans-G?nter@21474 28 -DLUA_LIBRARY=/usr/lib/liblua.so &&
al@20804 29 make &&
pascal@15128 30 make install
mallory@2687 31 }
mallory@2687 32
Hans-G?nter@21474 33 genpkg_rules()
Hans-G?nter@21474 34 {
al@20804 35 copy @std
Hans-G?nter@21474 36
Hans-G?nter@21474 37 DEPENDS="dbus gdk-pixbuf glib lgi libcairo liblua libx11 libxcb libxdg-basedir
Hans-G?nter@21474 38 libxkbcommon libxkbcommon-x11 pango-typelib startup-notification
Hans-G?nter@21474 39 xcb-util xcb-util-cursor xcb-util-keysyms xcb-util-wm xcb-util-xrm"
mallory@2687 40 }
mallory@2687 41
al@20804 42 # Adding WM to SLIM available sessions.
Hans-G?nter@21474 43 post_install()
Hans-G?nter@21474 44 {
al@20804 45 res=$(cat "$1/etc/slim.conf" | grep '^session' | sed 's|sessions. *||')
Hans-G?nter@21474 46 if ! echo "$res" | grep -q $PACKAGE
Hans-G?nter@21474 47 then
Hans-G?nter@21474 48 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" \
Hans-G?nter@21474 49 "$1/etc/slim.conf"
mallory@3114 50 fi
mallory@3114 51 }
mallory@3114 52
al@20804 53 # Remove WM from SLIM available sessions.
Hans-G?nter@21474 54 post_remove()
Hans-G?nter@21474 55 {
Hans-G?nter@21474 56 if grep -q $PACKAGE "$1/etc/slim.conf"
Hans-G?nter@21474 57 then
al@20804 58 sed -i "s|,$PACKAGE||" "$1/etc/slim.conf"
mallory@3114 59 fi
mallory@3114 60 }