wok annotate awesome/receipt @ rev 25196

updated python-httplib2 (0.17.1 -> 0.20.2)
author Hans-G?nter Theisgen
date Wed Jul 13 11:04:37 2022 +0100 (2022-07-13)
parents c02f18f9e836
children 343c093ad221
rev   line source
mallory@2687 1 # SliTaz package receipt.
mallory@2687 2
mallory@2687 3 PACKAGE="awesome"
Hans-G?nter@23803 4 VERSION="4.3"
mallory@2687 5 CATEGORY="x-window"
Hans-G?nter@23803 6 TAGS="window-manager"
Hans-G?nter@23803 7 SHORT_DESC="Highly configurable framework window manager."
mallory@2687 8 MAINTAINER="mallory@sweetpeople.org"
pascal@15128 9 LICENSE="GPL2"
pascal@23844 10 WEB_SITE="https://awesomewm.org/"
Hans-G?nter@23803 11
slaxemulator@12865 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@23803 13 WGET_URL="https://github.com/awesomeWM/$PACKAGE/releases/download/v$VERSION/$TARBALL"
mallory@2687 14
Hans-G?nter@23803 15 DEPENDS="cairo dbus gdk-pixbuf lgi libxdg-basedir libxkbcommon lua
Hans-G?nter@23803 16 pango-typelib startup-notification xcb-util-cursor xcb-util-image
Hans-G?nter@23818 17 xcb-util-keysyms xcb-util-renderutil xcb-util-wm xcb-util-xrm"
Hans-G?nter@23803 18 BUILD_DEPENDS="cairo cairo-dev cmake dbus-dev fontconfig-dev freetype-dev
Hans-G?nter@23803 19 gdk-pixbuf-dev gperf imagemagick imlib2-dev lgi libev-dev libpng-dev
Hans-G?nter@23803 20 libltdl libxdg-basedir-dev libxkbcommon-dev lua-dev openexr pango-dev
Hans-G?nter@23803 21 pkg-config startup-notification-dev xcb-util-cursor-dev xcb-util-dev
Hans-G?nter@23803 22 xcb-util-image-dev xcb-util-keysyms-dev xcb-util-renderutil-dev
Hans-G?nter@23803 23 xcb-util-wm-dev xcb-util-xrm-dev xorg-libX11-dev"
pankso@9792 24
pascal@24055 25 current_version()
pascal@24055 26 {
pascal@24055 27 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 28 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 29 }
pascal@24055 30
mallory@2687 31 # Rules to configure and make the package.
mallory@2687 32 compile_rules()
mallory@2687 33 {
pascal@17670 34 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl"
pascal@17777 35 export AWESOME_IGNORE_LGI=1
Hans-G?nter@23803 36 make \
Hans-G?nter@23803 37 CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \
Hans-G?nter@23803 38 -DXDG_CONFIG_DIR=/etc/xdg \
pascal@15128 39 -DCMAKE_BUILD_TYPE=RELEASE" &&
pascal@15128 40 make install
mallory@2687 41 }
mallory@2687 42
mallory@2687 43 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2687 44 genpkg_rules()
mallory@2687 45 {
Hans-G?nter@23803 46 mkdir -p $fs/usr/share/lua
Hans-G?nter@23803 47
Hans-G?nter@23803 48 cp -a $install/* $fs
al@16697 49
al@16697 50 # move lua scripts to lua directory
Hans-G?nter@23803 51 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2
mallory@2687 52 }
mallory@2687 53
mallory@3114 54 post_install()
mallory@3114 55 {
pascal@18670 56 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
mallory@3114 57 # Adding WM to SLIM available sessions.
Hans-G?nter@23803 58 if ! echo "$res" | grep -q $PACKAGE
Hans-G?nter@23803 59 then
Hans-G?nter@23803 60 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
Hans-G?nter@23803 61 "$1/etc/slim.conf"
mallory@3114 62 fi
mallory@3114 63 }
mallory@3114 64
mallory@3114 65 post_remove()
mallory@3114 66 {
mallory@3114 67 # Remove WM from SLIM available sessions.
Hans-G?nter@23803 68 if grep -q $PACKAGE "$1/etc/slim.conf"
Hans-G?nter@23803 69 then
al@18667 70 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
mallory@3114 71 fi
mallory@3114 72 }