wok-6.x view awesome/receipt @ rev 24489
updated dmidecode (3.2 -> 3.3)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 17:31:24 2022 +0100 (2022-02-18) |
parents | c02f18f9e836 |
children |
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://awesomewm.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 current_version()
26 {
27 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
28 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl"
35 export AWESOME_IGNORE_LGI=1
36 make \
37 CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \
38 -DXDG_CONFIG_DIR=/etc/xdg \
39 -DCMAKE_BUILD_TYPE=RELEASE" &&
40 make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/lua
48 cp -a $install/* $fs
50 # move lua scripts to lua directory
51 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2
52 }
54 post_install()
55 {
56 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
57 # Adding WM to SLIM available sessions.
58 if ! echo "$res" | grep -q $PACKAGE
59 then
60 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
61 "$1/etc/slim.conf"
62 fi
63 }
65 post_remove()
66 {
67 # Remove WM from SLIM available sessions.
68 if grep -q $PACKAGE "$1/etc/slim.conf"
69 then
70 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
71 fi
72 }