wok-6.x view i3/receipt @ rev 24448
firefox-official*: disable update by policy
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 15 10:43:08 2022 +0100 (2022-02-15) |
parents | 5dfd8f09a37f |
children | 7ea2c4c71235 |
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 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - ${WGET_URL%/*} 2>/dev/null | \
28 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 export CC=gcc-83
35 meson . \
36 _build \
37 --prefix=/usr &&
38 ninja -C _build &&
39 ninja -C _build install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share
48 cp -a $install/etc $fs
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/share/applications $fs/usr/share
51 cp -a $install/usr/share/xsessions $fs/usr/share
52 }
54 post_install()
55 {
56 # Add WM to SLIM available sessions.
57 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
58 if ! echo "$res" | grep -q $PACKAGE
59 then
60 echo -n "Adding $PACKAGE to /etc/slim.conf..."
61 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
62 "$1/etc/slim.conf"
63 status
64 fi
65 true
66 }
68 post_remove()
69 {
70 # Remove WM from SLIM available sessions.
71 if grep -q $PACKAGE "$1/etc/slim.conf"
72 then
73 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
74 fi
75 }