wok-6.x diff razorqt/receipt @ rev 12312

Rename razor-qt to razorqt (Follow https://github.com/Razor-qt/razor-qt/wiki/Packaging)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 17 14:21:40 2012 +0200 (2012-04-17)
parents
children ae3c4782f920
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/razorqt/receipt	Tue Apr 17 14:21:40 2012 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="razorqt"
     1.7 +VERSION="0.4.1"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Light and fast QT based Desktop Environment."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12 +WEB_SITE="http://razor-qt.org/"
    1.13 +WGET_URL="https://github.com/downloads/Razor-qt/razor-qt/$TARBALL"
    1.14 +SUGGESTED="razorqt-themes razorqt-appswitcher"
    1.15 +
    1.16 +DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic"
    1.17 +BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev"
    1.18 +# polkit-dev polkit-qt-dev doxygen
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	cd $src
    1.24 +	cmake -DCMAKE_INSTALL_PREFIX=/usr .
    1.25 +	make && make install
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	mkdir -p $fs/usr/lib $fs/usr/share
    1.32 +	# Use SliTaz XDG Menu
    1.33 +	#cp -a $install/etc $fs
    1.34 +	cp -a $install/usr/bin $fs/usr
    1.35 +	
    1.36 +	# Split plugins ?
    1.37 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.38 +	cp -a $install/usr/lib/razor-* $fs/usr/lib
    1.39 +	cp -a $install/usr/share/librazorqt $fs/usr/share
    1.40 +	cp -a $install/usr/share/razor $fs/usr/share
    1.41 +	
    1.42 +	# Appswitcher --> razorqt-appswitcher
    1.43 +	rm -f $fs/usr/bin/razor-appswitcher
    1.44 +	
    1.45 +	# Themes --> razorqt-themes
    1.46 +	rm -rf $fs/usr/share/razor/themes
    1.47 +	mkdir -p $fs/usr/share/razor/themes
    1.48 +	cp -a $install/usr/share/razor/themes/light \
    1.49 +		$fs/usr/share/razor/themes
    1.50 +	
    1.51 +	# Custom SliTaz integration
    1.52 +	cp -a $stuff/*.conf $fs/usr/share/razor
    1.53 +}
    1.54 +
    1.55 +post_install()
    1.56 +{
    1.57 +	res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
    1.58 +	# Adding WM to SLIM available sessions.
    1.59 +	if ! echo "$res" | grep -q $PACKAGE; then
    1.60 +		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.61 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $1/etc/slim.conf
    1.62 +		status
    1.63 +	fi
    1.64 +}
    1.65 +
    1.66 +post_remove()
    1.67 +{
    1.68 +	# Remove WM from SLIM available sessions.
    1.69 +	if grep -q $PACKAGE $1/etc/slim.conf; then
    1.70 +		sed -i s/,$PACKAGE// $1/etc/slim.conf
    1.71 +	fi
    1.72 +}