wok-next view awesome/receipt @ rev 21018
Nasty typo broke the cooker
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 17 03:59:24 2018 +0300 (2018-10-17) |
parents | d43bf7aae921 |
children | d5aab818505e |
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="mallory@sweetpeople.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 xorg-libxcb-dev glib-dev gdk-pixbuf-dev cairo-dev xorg-xcb-util-cursor-dev \
16 xorg-xcb-util-dev xorg-xcb-util-keysyms-dev xorg-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="cairo dbus gdk-pixbuf glib liblua libxdg-basedir libxkbcommon-x11 \
36 libxkbcommon startup-notification xcb-util-xrm xorg-libX11 xorg-libxcb \
37 xorg-xcb-util xorg-xcb-util-cursor xorg-xcb-util-keysyms xorg-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 }