wok-6.x annotate i3/receipt @ rev 24622
updated graphviz, graphviz-dev and graphviz-doc (2.42.2 -> 3.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 07 16:02:21 2022 +0100 (2022-03-07) |
parents | 5dfd8f09a37f |
children | 7ea2c4c71235 |
rev | line source |
---|---|
pascal@13231 | 1 # SliTaz package receipt. |
pascal@13231 | 2 |
pascal@13231 | 3 PACKAGE="i3" |
Hans-G?nter@24050 | 4 VERSION="4.19.2" |
pascal@13231 | 5 CATEGORY="x-window" |
Hans-G?nter@24050 | 6 SHORT_DESC="i3 tiling window manager." |
pascal@16048 | 7 MAINTAINER="ybringler@gmail.com" |
pascal@15600 | 8 LICENSE="BSD" |
pascal@20671 | 9 WEB_SITE="https://i3wm.org" |
Hans-G?nter@24050 | 10 |
Hans-G?nter@24050 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@13231 | 12 WGET_URL="$WEB_SITE/downloads/$TARBALL" |
pascal@15600 | 13 |
Hans-G?nter@24050 | 14 DEPENDS="dmenu gcc83-lib-base libev libxcb libxkbcommon |
Hans-G?nter@24050 | 15 startup-notification xcb-util xcb-util-cursor xcb-util-image |
Hans-G?nter@24050 | 16 xcb-util-keysyms xcb-util-renderutil xcb-util-wm xcb-util-xrm |
Hans-G?nter@24050 | 17 xorg-libX11 xorg-libXcursor yajl" |
Hans-G?nter@24050 | 18 BUILD_DEPENDS="docbook-xml gcc83 libev-dev libxcb-dev libxkbcommon-dev |
Hans-G?nter@24050 | 19 meson ninja pango-dev pcre-dev pkg-config startup-notification-dev |
Hans-G?nter@24050 | 20 xcb-util-cursor-dev xcb-util-dev xcb-util-image-dev |
Hans-G?nter@24050 | 21 xcb-util-keysyms-dev xcb-util-renderutil-dev xcb-util-wm-dev |
Hans-G?nter@24050 | 22 xcb-util-xrm-dev xorg-libX11-dev xorg-libXcursor-dev yajl" |
pascal@13231 | 23 |
pascal@24427 | 24 # What is the latest version available today? |
pascal@24427 | 25 current_version() |
pascal@24427 | 26 { |
pascal@24427 | 27 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 28 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 29 } |
pascal@24427 | 30 |
pascal@13231 | 31 # Rules to configure and make the package. |
pascal@13231 | 32 compile_rules() |
pascal@13231 | 33 { |
Hans-G?nter@24050 | 34 export CC=gcc-83 |
Hans-G?nter@24050 | 35 meson . \ |
Hans-G?nter@24050 | 36 _build \ |
Hans-G?nter@24050 | 37 --prefix=/usr && |
Hans-G?nter@24050 | 38 ninja -C _build && |
Hans-G?nter@24050 | 39 ninja -C _build install |
pascal@13231 | 40 } |
pascal@13231 | 41 |
pascal@13231 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13231 | 43 |
pascal@13231 | 44 genpkg_rules() |
pascal@13231 | 45 { |
Hans-G?nter@24050 | 46 mkdir -p $fs/usr/share |
Hans-G?nter@24050 | 47 |
Hans-G?nter@24050 | 48 cp -a $install/etc $fs |
Hans-G?nter@24050 | 49 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24050 | 50 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@24050 | 51 cp -a $install/usr/share/xsessions $fs/usr/share |
pascal@13231 | 52 } |
Hans-G?nter@24050 | 53 |
Hans-G?nter@24050 | 54 post_install() |
Hans-G?nter@24050 | 55 { |
Hans-G?nter@24050 | 56 # Add WM to SLIM available sessions. |
Hans-G?nter@24050 | 57 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
Hans-G?nter@24050 | 58 if ! echo "$res" | grep -q $PACKAGE |
Hans-G?nter@24050 | 59 then |
Hans-G?nter@24050 | 60 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
Hans-G?nter@24050 | 61 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ |
Hans-G?nter@24050 | 62 "$1/etc/slim.conf" |
Hans-G?nter@24050 | 63 status |
Hans-G?nter@24050 | 64 fi |
Hans-G?nter@24050 | 65 true |
Hans-G?nter@24050 | 66 } |
Hans-G?nter@24050 | 67 |
Hans-G?nter@24050 | 68 post_remove() |
Hans-G?nter@24050 | 69 { |
Hans-G?nter@24050 | 70 # Remove WM from SLIM available sessions. |
Hans-G?nter@24050 | 71 if grep -q $PACKAGE "$1/etc/slim.conf" |
Hans-G?nter@24050 | 72 then |
Hans-G?nter@24050 | 73 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
Hans-G?nter@24050 | 74 fi |
Hans-G?nter@24050 | 75 } |
Hans-G?nter@24054 | 76 |