wok view lxqt-common/receipt @ rev 18589
faenza-icon-theme: don't remove icons in $install
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 13 02:44:43 2015 +0200 (2015-11-13) |
parents | 5d53e8ccbc8d |
children | 9e01bc6321ea |
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 -n "Adding lxqt to /etc/slim.conf..."
46 sed -i "s/^sessions.*/sessions ${res},lxqt/" $1/etc/slim.conf
47 status
48 fi
49 }
51 post_remove()
52 {
53 # Remove WM from SLIM available sessions.
54 if grep -q lxqt $1/etc/slim.conf; then
55 sed -i s/,lxqt// $1/etc/slim.conf
56 fi
57 }