wok-next view lxqt-common/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | 4c3ee4d2d357 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lxqt-common"
4 VERSION="0.11.2"
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 LFS="http://www.linuxfromscratch.org/blfs/view/stable/lxqt/lxqt-common.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://github.com/lxde/lxqt-common-deprecated--do-not-use-anymore-/releases/download/$VERSION/$TARBALL"
15 BUILD_DEPENDS="lxqt-build-tools"
16 SPLIT="lxqt-common-themes lxqt-common"
18 compile_rules() {
19 sed -i '/TryExec/ s|=|=/usr/bin/|' xsession/lxqt.desktop.in
21 mkdir build; cd build
22 cmake \
23 -DCMAKE_BUILD_TYPE=Release \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 .. &&
26 make &&
27 mkdir -p $install/usr/share/lxqt/graphics &&
28 make install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 lxqt-common-themes)
34 copy themes/
35 rm -r $fs/usr/share/lxqt/themes/system/ $fs/usr/share/lxqt/themes/frost/
36 CAT="customization|themes"
37 TAGS="LXQt"
38 ;;
39 lxqt-common)
40 copy @std
41 remove_already_packed
42 TAGS="LXQt window-manager"
43 DEPENDS="dbus xorg-xmessage xorg-xprop"
44 ;;
45 esac
46 }
48 # SLiM can use /usr/share/xsessions/ too... ?
49 # Also, we may not use SLiM at all.
50 post_install_lxqt_common() {
51 if [ -e "$1/etc/slim.conf" ]; then
52 res=$(cat "$1/etc/slim.conf" | grep '^session' | sed 's|sessions. *||')
53 # Adding WM to SLiM available sessions.
54 if ! echo "$res" | grep -q lxqt; then
55 action "Adding lxqt to /etc/slim.conf..."
56 sed -i "s|^sessions.*|sessions $res,lxqt|" "$1/etc/slim.conf"
57 status
58 fi
59 fi
60 }
62 post_remove_lxqt_common() {
63 if [ -e "$1/etc/slim.conf" ]; then
64 # Remove WM from SLiM available sessions.
65 if grep -q lxqt "$1/etc/slim.conf"; then
66 sed -i 's|,lxqt||' "$1/etc/slim.conf"
67 fi
68 fi
69 }