wok-current view lxqt-common/receipt @ rev 22067
updated udevil again (0.4.3 -> 0.4.4)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 25 14:56:03 2019 +0100 (2019-10-25) |
parents | 9e01bc6321ea |
children | b569b85b0fb9 |
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir build; cd build
22 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
23 make &&
24 make DESTDIR=$install install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr
31 cp -a $install/etc $fs
32 cd $fs; patch -p0 < $stuff/settings.diff
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/share $fs/usr
35 # all themes but 'flat' go to 'lxqt-themes'
36 rm -rf $fs/usr/share/lxqt/themes/*
37 cp -a $install/usr/share/lxqt/themes/flat $fs/usr/share/lxqt/themes
38 }
40 post_install()
41 {
42 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
43 # Adding WM to SLIM available sessions.
44 if ! echo "$res" | grep -q $PACKAGE; then
45 echo
46 echo -n "Adding lxqt to /etc/slim.conf..."
47 sed -i "s/^sessions.*/sessions ${res},lxqt/" "$1/etc/slim.conf"
48 status
49 fi
50 }
52 post_remove()
53 {
54 # Remove WM from SLIM available sessions.
55 if grep -q lxqt "$1/etc/slim.conf"; then
56 sed -i s/,lxqt// "$1/etc/slim.conf"
57 fi
58 }