# HG changeset patch # User Xander Ziiryanoff # Date 1413676291 -7200 # Node ID a4377148d6dc97d6160bb19564e2ac877189cf9b # Parent e8cfd66e6b22aa6fab8de30be5c4d995c040b285 Add lxqt (meta), make qt4-examples: screenshot, findfiles, charactermap diff -r e8cfd66e6b22 -r a4377148d6dc lxqt/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lxqt/receipt Sun Oct 19 01:51:31 2014 +0200 @@ -0,0 +1,48 @@ +# SliTaz package receipt. + +PACKAGE="lxqt" +VERSION="0.8.0" +CATEGORY="meta" +SHORT_DESC="LXQt metapackage + userconfig slim-install." +MAINTAINER="psychomaniak@xakep.ru" +LICENSE="GPL2" +WEB_SITE="http://lxqt.org" +TAGS="LXQt" + +DEPENDS="gvfs lximage-qt libQtMimeTypes liblxqt liblxqt-mount lxqt-about \ +lxqt-admin lxqt-appswitcher lxqt-common lxqt-config lxqt-config-randr \ +lxqt-globalkeys lxqt-notificationd lxqt-openssh-askpass lxqt-panel \ +lxqt-policykit lxqt-powermanagement lxqt-qtplugin lxqt-runner lxqt-session \ +lxqt-themes openbox obconf-qt oxygen-icons qlipper qtconfig pcmanfm-qt \ +xorg-xprop xorg-xset" + +SUGGESTED="copyq juffed qterminal qps qupzilla" + +genpkg_rules() +{ + mkdir -p $fs/etc +} + +post_install() +{ + for i in $(ls -d $1/root $1/home/* 2> /dev/null); + do [ -d $i ] && \ + sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"startlxqt"|' -i \ + $i/.config/slitaz/applications.conf \ + $1/etc/slitaz/applications.conf + done + + for a in lxpanel pcmanfm tazpkg-notify xcompmgr; do + sed '/NotShowIn=/s|;$|&LXQt;|' -i $1/etc/xdg/autostart/$a.desktop + done +} + +post_remove() +{ + for i in $(ls -d $1/root $1/home/* 2> /dev/null); + do [ -d $i ] && \ + sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \ + $i/.config/slitaz/applications.conf \ + $1/etc/slitaz/applications.conf + done +} diff -r e8cfd66e6b22 -r a4377148d6dc qt4-examples/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qt4-examples/receipt Sun Oct 19 01:51:31 2014 +0200 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="qt4-examples" +VERSION="4.8.6" +CATEGORY="misc" +SHORT_DESC="Screenshot, FindFiles, CharacterMap" +MAINTAINER="psychomaniak@xakep.ru" +LICENSE="GPL3 LGPL2.1" +WEB_SITE="http://qt-project.org/" +TAGS="qt" + +DEPENDS="libQtCore libQtGui" +BUILD_DEPENDS="Qt4-dev qmake cmake xorg-libX11-dev" + +# Rules to configure and make the package. +compile_rules() +{ + mkdir -p $install/usr/bin $install/usr/share/applications + + for i in desktop/screenshot dialogs/findfiles widgets/charactermap; + do + cd $WOK/qt4/source/qt4-$VERSION/examples/$i + rm -rf Makefile moc* *.o + qmake ${i:8}.pro + sed 's|-O2|'"$CFLAGS"'|' -i Makefile + make $MAKEFLAGS && + install ${i:8} $DESTDIR/usr/bin + install ${i:8}.desktop $DESTDIR/usr/share/applications + done + find $install -name *.desktop -exec sed 's|/opt/|/|g' -i {} \; +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs +}