wok view lxqt-common/receipt @ rev 24693

updated jwm (2.3.7 -> 2.4.1)
author Hans-G?nter Theisgen
date Sun Mar 13 07:13:46 2022 +0100 (2022-03-13)
parents 970c5ec9a60a
children 3c87910e2ece
line source
1 # SliTaz package receipt.
3 PACKAGE="lxqt-common"
4 VERSION="0.8.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common files for LXQt"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/lxde/lxqt-common"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="http://lxqt.org/downloads/$VERSION/$TARBALL"
12 TAGS="LXQt window-manager"
14 # TODO: add more depends
15 DEPENDS="xorg-xprop dbus "
16 BUILD_DEPENDS="cmake Qt4-dev qmake liblxqt-dev grep libqtxdg-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir build; cd build
29 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
30 make &&
31 make DESTDIR=$install install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/etc $fs
39 cd $fs; patch -p0 < $stuff/settings.diff
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share $fs/usr
42 # all themes but 'flat' go to 'lxqt-themes'
43 rm -rf $fs/usr/share/lxqt/themes/*
44 cp -a $install/usr/share/lxqt/themes/flat $fs/usr/share/lxqt/themes
45 }
47 post_install()
48 {
49 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
50 # Adding WM to SLIM available sessions.
51 if ! echo "$res" | grep -q $PACKAGE; then
52 echo
53 echo -n "Adding lxqt to /etc/slim.conf..."
54 sed -i "s/^sessions.*/sessions ${res},lxqt/" "$1/etc/slim.conf"
55 status
56 fi
57 }
59 post_remove()
60 {
61 # Remove WM from SLIM available sessions.
62 if grep -q lxqt "$1/etc/slim.conf"; then
63 sed -i s/,lxqt// "$1/etc/slim.conf"
64 fi
65 }