wok-next annotate awesome/receipt @ rev 20869

mono: fix build on 32-bit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 02 10:15:48 2018 +0300 (2018-07-02)
parents d43bf7aae921
children d5aab818505e
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"
mallory@2687 7 MAINTAINER="mallory@sweetpeople.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@20804 15 xorg-libxcb-dev glib-dev gdk-pixbuf-dev cairo-dev xorg-xcb-util-cursor-dev \
al@20804 16 xorg-xcb-util-dev xorg-xcb-util-keysyms-dev xorg-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@20804 35 DEPENDS="cairo dbus gdk-pixbuf glib liblua libxdg-basedir libxkbcommon-x11 \
al@20804 36 libxkbcommon startup-notification xcb-util-xrm xorg-libX11 xorg-libxcb \
al@20804 37 xorg-xcb-util xorg-xcb-util-cursor xorg-xcb-util-keysyms xorg-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 }