wok-current view i3/receipt @ rev 25245
updated python-unidecode (1.1.1 -> 1.2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 14 07:00:20 2022 +0100 (2022-07-14) |
parents | 83b97236db32 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="i3"
4 VERSION="4.20.1"
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 SUGGESTED="i3status"
15 DEPENDS="dmenu gcc83-lib-base libev libxcb libxkbcommon libxml2
16 startup-notification xcb-util xcb-util-cursor xcb-util-image
17 xcb-util-keysyms xcb-util-renderutil xcb-util-wm xcb-util-xrm
18 xorg-libX11 xorg-libXcursor yajl"
19 BUILD_DEPENDS="docbook-xml gcc83 libev-dev libxcb-dev libxkbcommon-dev
20 libxml2-dev meson pango-dev pcre-dev pkg-config
21 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
24 xorg-libXcursor-dev yajl"
26 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - ${WGET_URL%/*} 2>/dev/null | \
30 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 export CC=gcc-83
38 meson _build \
39 --prefix=/usr &&
40 ninja -C _build &&
41 ninja -C _build install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share
50 cp -a $install/etc $fs
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/share/applications $fs/usr/share
53 cp -a $install/usr/share/xsessions $fs/usr/share
54 }
56 post_install()
57 {
58 # Add WM to SLIM available sessions.
59 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
60 if ! echo "$res" | grep -q $PACKAGE
61 then
62 echo -n "Adding $PACKAGE to /etc/slim.conf..."
63 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
64 "$1/etc/slim.conf"
65 status
66 fi
67 true
68 }
70 post_remove()
71 {
72 # Remove WM from SLIM available sessions.
73 if grep -q $PACKAGE "$1/etc/slim.conf"
74 then
75 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
76 fi
77 }