wok rev 17245

Add lxqt (meta), make qt4-examples: screenshot, findfiles, charactermap
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Oct 19 01:51:31 2014 +0200 (2014-10-19)
parents e8cfd66e6b22
children f785aa5219e8
files lxqt/receipt qt4-examples/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lxqt/receipt	Sun Oct 19 01:51:31 2014 +0200
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="lxqt"
     1.7 +VERSION="0.8.0"
     1.8 +CATEGORY="meta"
     1.9 +SHORT_DESC="LXQt metapackage + userconfig slim-install."
    1.10 +MAINTAINER="psychomaniak@xakep.ru"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="http://lxqt.org"
    1.13 +TAGS="LXQt"
    1.14 +
    1.15 +DEPENDS="gvfs lximage-qt libQtMimeTypes liblxqt liblxqt-mount lxqt-about \
    1.16 +lxqt-admin lxqt-appswitcher lxqt-common lxqt-config lxqt-config-randr \
    1.17 +lxqt-globalkeys lxqt-notificationd lxqt-openssh-askpass lxqt-panel \
    1.18 +lxqt-policykit lxqt-powermanagement lxqt-qtplugin lxqt-runner lxqt-session \
    1.19 +lxqt-themes openbox obconf-qt oxygen-icons qlipper qtconfig pcmanfm-qt \
    1.20 +xorg-xprop xorg-xset"
    1.21 +
    1.22 +SUGGESTED="copyq juffed qterminal qps qupzilla"
    1.23 +
    1.24 +genpkg_rules()
    1.25 +{
    1.26 +	mkdir -p $fs/etc
    1.27 +}
    1.28 +
    1.29 +post_install()
    1.30 +{
    1.31 +	for i in $(ls -d $1/root $1/home/* 2> /dev/null);
    1.32 +	do [ -d $i ] && \
    1.33 +	sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"startlxqt"|' -i \
    1.34 +	$i/.config/slitaz/applications.conf \
    1.35 +	$1/etc/slitaz/applications.conf
    1.36 +	done
    1.37 +	
    1.38 +	for a in lxpanel pcmanfm tazpkg-notify xcompmgr; do
    1.39 +	sed '/NotShowIn=/s|;$|&LXQt;|' -i $1/etc/xdg/autostart/$a.desktop
    1.40 +	done
    1.41 +}
    1.42 +
    1.43 +post_remove()
    1.44 +{
    1.45 +	for i in $(ls -d $1/root $1/home/* 2> /dev/null);
    1.46 +	do [ -d $i ] && \
    1.47 +	sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
    1.48 +	$i/.config/slitaz/applications.conf \
    1.49 +	$1/etc/slitaz/applications.conf
    1.50 +	done
    1.51 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/qt4-examples/receipt	Sun Oct 19 01:51:31 2014 +0200
     2.3 @@ -0,0 +1,37 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="qt4-examples"
     2.7 +VERSION="4.8.6"
     2.8 +CATEGORY="misc"
     2.9 +SHORT_DESC="Screenshot, FindFiles, CharacterMap"
    2.10 +MAINTAINER="psychomaniak@xakep.ru"
    2.11 +LICENSE="GPL3 LGPL2.1"
    2.12 +WEB_SITE="http://qt-project.org/"
    2.13 +TAGS="qt"
    2.14 +
    2.15 +DEPENDS="libQtCore libQtGui"
    2.16 +BUILD_DEPENDS="Qt4-dev qmake cmake xorg-libX11-dev"
    2.17 +
    2.18 +# Rules to configure and make the package.
    2.19 +compile_rules()
    2.20 +{
    2.21 +	mkdir -p $install/usr/bin $install/usr/share/applications
    2.22 +
    2.23 +	for i in desktop/screenshot dialogs/findfiles widgets/charactermap;
    2.24 +	do
    2.25 +		cd $WOK/qt4/source/qt4-$VERSION/examples/$i
    2.26 +		rm -rf Makefile moc* *.o
    2.27 +		qmake ${i:8}.pro
    2.28 +		sed 's|-O2|'"$CFLAGS"'|' -i Makefile
    2.29 +		make $MAKEFLAGS &&
    2.30 +		install ${i:8} $DESTDIR/usr/bin
    2.31 +		install ${i:8}.desktop $DESTDIR/usr/share/applications
    2.32 +	done
    2.33 +	find $install -name *.desktop -exec sed 's|/opt/|/|g' -i {} \;
    2.34 +}
    2.35 +
    2.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.37 +genpkg_rules()
    2.38 +{
    2.39 +	cp -a $install/* $fs
    2.40 +}