wok view awesome/receipt @ rev 23840

Up libsdl2-image (2.0.5), radare2 (4.4.0), screen (4.8.0), sleuthkit (4.9.0), thunderbird-bin (68.9.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 04 16:22:12 2020 +0000 (2020-06-04)
parents bd2dfe2c0c09
children c02f18f9e836
line source
1 # SliTaz package receipt.
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="mallory@sweetpeople.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://awesome.naquadah.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://github.com/awesomeWM/$PACKAGE/releases/download/v$VERSION/$TARBALL"
15 DEPENDS="cairo dbus gdk-pixbuf lgi libxdg-basedir libxkbcommon lua
16 pango-typelib startup-notification xcb-util-cursor xcb-util-image
17 xcb-util-keysyms xcb-util-renderutil xcb-util-wm xcb-util-xrm"
18 BUILD_DEPENDS="cairo cairo-dev cmake dbus-dev fontconfig-dev freetype-dev
19 gdk-pixbuf-dev gperf imagemagick imlib2-dev lgi libev-dev libpng-dev
20 libltdl libxdg-basedir-dev libxkbcommon-dev lua-dev openexr pango-dev
21 pkg-config startup-notification-dev xcb-util-cursor-dev xcb-util-dev
22 xcb-util-image-dev xcb-util-keysyms-dev xcb-util-renderutil-dev
23 xcb-util-wm-dev xcb-util-xrm-dev xorg-libX11-dev"
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl"
29 export AWESOME_IGNORE_LGI=1
30 make \
31 CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \
32 -DXDG_CONFIG_DIR=/etc/xdg \
33 -DCMAKE_BUILD_TYPE=RELEASE" &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/lua
42 cp -a $install/* $fs
44 # move lua scripts to lua directory
45 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2
46 }
48 post_install()
49 {
50 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
51 # Adding WM to SLIM available sessions.
52 if ! echo "$res" | grep -q $PACKAGE
53 then
54 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
55 "$1/etc/slim.conf"
56 fi
57 }
59 post_remove()
60 {
61 # Remove WM from SLIM available sessions.
62 if grep -q $PACKAGE "$1/etc/slim.conf"
63 then
64 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
65 fi
66 }