wok annotate awesome/receipt @ rev 24034
Openssh (8.5p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 08 09:21:26 2021 +0000 (2021-04-08) |
parents | 5339fa6ba7fe |
children | 5ea0ce1cecc0 |
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 |
mallory@2687 | 25 # Rules to configure and make the package. |
mallory@2687 | 26 compile_rules() |
mallory@2687 | 27 { |
pascal@17670 | 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl" |
pascal@17777 | 29 export AWESOME_IGNORE_LGI=1 |
Hans-G?nter@23803 | 30 make \ |
Hans-G?nter@23803 | 31 CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \ |
Hans-G?nter@23803 | 32 -DXDG_CONFIG_DIR=/etc/xdg \ |
pascal@15128 | 33 -DCMAKE_BUILD_TYPE=RELEASE" && |
pascal@15128 | 34 make install |
mallory@2687 | 35 } |
mallory@2687 | 36 |
mallory@2687 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2687 | 38 genpkg_rules() |
mallory@2687 | 39 { |
Hans-G?nter@23803 | 40 mkdir -p $fs/usr/share/lua |
Hans-G?nter@23803 | 41 |
Hans-G?nter@23803 | 42 cp -a $install/* $fs |
al@16697 | 43 |
al@16697 | 44 # move lua scripts to lua directory |
Hans-G?nter@23803 | 45 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2 |
mallory@2687 | 46 } |
mallory@2687 | 47 |
mallory@3114 | 48 post_install() |
mallory@3114 | 49 { |
pascal@18670 | 50 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
mallory@3114 | 51 # Adding WM to SLIM available sessions. |
Hans-G?nter@23803 | 52 if ! echo "$res" | grep -q $PACKAGE |
Hans-G?nter@23803 | 53 then |
Hans-G?nter@23803 | 54 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \ |
Hans-G?nter@23803 | 55 "$1/etc/slim.conf" |
mallory@3114 | 56 fi |
mallory@3114 | 57 } |
mallory@3114 | 58 |
mallory@3114 | 59 post_remove() |
mallory@3114 | 60 { |
mallory@3114 | 61 # Remove WM from SLIM available sessions. |
Hans-G?nter@23803 | 62 if grep -q $PACKAGE "$1/etc/slim.conf" |
Hans-G?nter@23803 | 63 then |
al@18667 | 64 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
mallory@3114 | 65 fi |
mallory@3114 | 66 } |