wok annotate awesome/receipt @ rev 25760
created recipes for thunar-archive-plugin-lang and thunar-volman-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sun Sep 01 15:08:01 2024 +0100 (5 months ago) |
parents | 5ea0ce1cecc0 |
children |
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@25597 | 25 # What is the latest version available today? |
pascal@24055 | 26 current_version() |
pascal@24055 | 27 { |
pascal@24055 | 28 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@25597 | 29 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 30 } |
pascal@24055 | 31 |
mallory@2687 | 32 # Rules to configure and make the package. |
mallory@2687 | 33 compile_rules() |
mallory@2687 | 34 { |
pascal@17670 | 35 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl" |
pascal@17777 | 36 export AWESOME_IGNORE_LGI=1 |
Hans-G?nter@23803 | 37 make \ |
Hans-G?nter@23803 | 38 CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \ |
Hans-G?nter@23803 | 39 -DXDG_CONFIG_DIR=/etc/xdg \ |
pascal@15128 | 40 -DCMAKE_BUILD_TYPE=RELEASE" && |
pascal@15128 | 41 make install |
mallory@2687 | 42 } |
mallory@2687 | 43 |
mallory@2687 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2687 | 45 genpkg_rules() |
mallory@2687 | 46 { |
Hans-G?nter@23803 | 47 mkdir -p $fs/usr/share/lua |
Hans-G?nter@23803 | 48 |
Hans-G?nter@23803 | 49 cp -a $install/* $fs |
al@16697 | 50 |
al@16697 | 51 # move lua scripts to lua directory |
Hans-G?nter@23803 | 52 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2 |
mallory@2687 | 53 } |
mallory@2687 | 54 |
mallory@3114 | 55 post_install() |
mallory@3114 | 56 { |
pascal@18670 | 57 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
mallory@3114 | 58 # Adding WM to SLIM available sessions. |
Hans-G?nter@23803 | 59 if ! echo "$res" | grep -q $PACKAGE |
Hans-G?nter@23803 | 60 then |
Hans-G?nter@23803 | 61 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ |
Hans-G?nter@23803 | 62 "$1/etc/slim.conf" |
mallory@3114 | 63 fi |
mallory@3114 | 64 } |
mallory@3114 | 65 |
mallory@3114 | 66 post_remove() |
mallory@3114 | 67 { |
mallory@3114 | 68 # Remove WM from SLIM available sessions. |
Hans-G?nter@23803 | 69 if grep -q $PACKAGE "$1/etc/slim.conf" |
Hans-G?nter@23803 | 70 then |
al@18667 | 71 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
mallory@3114 | 72 fi |
mallory@3114 | 73 } |