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