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