wok view i3/receipt @ rev 24054

xorg-libX11 and xorg-libX11-dev (1.6.9 -> 1.7.0)
author Hans-G?nter Theisgen
date Sun May 30 10:18:33 2021 +0100 (2021-05-30)
parents 8685d0e1ac51
children 83b97236db32
line source
1 # SliTaz package receipt.
3 PACKAGE="i3"
4 VERSION="4.19.2"
5 CATEGORY="x-window"
6 SHORT_DESC="i3 tiling window manager."
7 MAINTAINER="ybringler@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://i3wm.org"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$WEB_SITE/downloads/$TARBALL"
14 DEPENDS="dmenu gcc83-lib-base libev libxcb libxkbcommon
15 startup-notification xcb-util xcb-util-cursor xcb-util-image
16 xcb-util-keysyms xcb-util-renderutil xcb-util-wm xcb-util-xrm
17 xorg-libX11 xorg-libXcursor yajl"
18 BUILD_DEPENDS="docbook-xml gcc83 libev-dev libxcb-dev libxkbcommon-dev
19 meson ninja pango-dev pcre-dev pkg-config startup-notification-dev
20 xcb-util-cursor-dev xcb-util-dev xcb-util-image-dev
21 xcb-util-keysyms-dev xcb-util-renderutil-dev xcb-util-wm-dev
22 xcb-util-xrm-dev xorg-libX11-dev xorg-libXcursor-dev yajl"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CC=gcc-83
28 meson . \
29 _build \
30 --prefix=/usr &&
31 ninja -C _build &&
32 ninja -C _build install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cp -a $install/etc $fs
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/share/applications $fs/usr/share
44 cp -a $install/usr/share/xsessions $fs/usr/share
45 }
47 post_install()
48 {
49 # Add WM to SLIM available sessions.
50 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
51 if ! echo "$res" | grep -q $PACKAGE
52 then
53 echo -n "Adding $PACKAGE to /etc/slim.conf..."
54 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
55 "$1/etc/slim.conf"
56 status
57 fi
58 true
59 }
61 post_remove()
62 {
63 # Remove WM from SLIM available sessions.
64 if grep -q $PACKAGE "$1/etc/slim.conf"
65 then
66 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
67 fi
68 }