wok-next view awesome/receipt @ rev 21551

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