# HG changeset patch # User Christophe Lincoln # Date 1334665300 -7200 # Node ID 6cfe3e51621080149ca1b25ff6aa7bbb0c80152a # Parent ecd657025eda2c069fc97e17896ac23d19b232db Rename razor-qt to razorqt (Follow https://github.com/Razor-qt/razor-qt/wiki/Packaging) diff -r ecd657025eda -r 6cfe3e516210 razor-qt-dev/receipt --- a/razor-qt-dev/receipt Tue Apr 17 13:01:32 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="razor-qt-dev" -VERSION="0.4.1" -CATEGORY="development" -SHORT_DESC="Development files for the QT based Razor desktop" -MAINTAINER="pankso@slitaz.org" -WANTED="razor-qt" -WEB_SITE="http://razor-qt.org/" - -DEPENDS="Qt-dev" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/pkgconfig $fs/usr/lib - cp -a $install/usr/include $fs/usr -} diff -r ecd657025eda -r 6cfe3e516210 razor-qt-themes/receipt --- a/razor-qt-themes/receipt Tue Apr 17 13:01:32 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="razor-qt-themes" -VERSION="0.4.1" -CATEGORY="x-window" -SHORT_DESC="Extra themes for RazorQT desktop" -MAINTAINER="pankso@slitaz.org" -WANTED="razor-qt" -WEB_SITE="http://razor-qt.org/" - -DEPENDS="razor-qt" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/share/razor - cp -a $install/usr/share/razor/themes $fs/usr/share/razor - rm -rf $fs/usr/share/razor/themes/light -} diff -r ecd657025eda -r 6cfe3e516210 razor-qt/receipt --- a/razor-qt/receipt Tue Apr 17 13:01:32 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="razor-qt" -VERSION="0.4.1" -CATEGORY="x-window" -SHORT_DESC="Light and fast QT based Desktop Environment." -MAINTAINER="pankso@slitaz.org" -SOURCE="razorqt" -TARBALL="$SOURCE-$VERSION.tar.bz2" -WEB_SITE="http://razor-qt.org/" -WGET_URL="https://github.com/downloads/Razor-qt/razor-qt/$TARBALL" -SUGGESTED="razor-qt-themes" - -DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic" -BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev" - -# Rules to configure and make the package. -compile_rules() -{ - cd $src - cmake -DCMAKE_INSTALL_PREFIX=/usr . - make && make install -} - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib $fs/usr/share - # Use SliTaz XDG Menu - #cp -a $install/etc $fs - cp -a $install/usr/bin $fs/usr - # Split plugins ? - cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/lib/razor-* $fs/usr/lib - cp -a $install/usr/share/librazorqt $fs/usr/share - cp -a $install/usr/share/razor $fs/usr/share - # Themes --> razor-qt-themes - rm -rf $fs/usr/share/razor/themes - mkdir -p $fs/usr/share/razor/themes - cp -a $install/usr/share/razor/themes/light $fs/usr/share/razor/themes - # Custom SliTaz integration - cp -a $stuff/*.conf $fs/usr/share/razor -} - -post_install() -{ - res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) - # Adding WM to SLIM available sessions. - if ! echo "$res" | grep -q $PACKAGE; then - echo -n "Adding $PACKAGE to /etc/slim.conf..." - sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf - status - fi -} - -post_remove() -{ - # Remove WM from SLIM available sessions. - if grep -q $PACKAGE $1/etc/slim.conf; then - sed -i s/,$PACKAGE// $1/etc/slim.conf - fi -} diff -r ecd657025eda -r 6cfe3e516210 razor-qt/stuff/desktop.conf --- a/razor-qt/stuff/desktop.conf Tue Apr 17 13:01:32 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -[General] -desktop=razor -icon-launch-mode=singleclick - -[wm_native] -icons=true - -[razor] -desktops\size=1 -desktops\1\plugins=iconview_default, analogclock_default -menu_file=/etc/xdg/menus/applications.menu - -[iconview_default] -plugin=iconview -x=10 -y=10 -w=790 -h=590 - -[analogclock_default] -plugin=analogclock -x=-1 -y=1 diff -r ecd657025eda -r 6cfe3e516210 razor-qt/stuff/razor.conf --- a/razor-qt/stuff/razor.conf Tue Apr 17 13:01:32 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -[General] -theme=light -icon_theme=SliTaz diff -r ecd657025eda -r 6cfe3e516210 razor-qt/stuff/session.conf --- a/razor-qt/stuff/session.conf Tue Apr 17 13:01:32 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -[General] -windowmanager=openbox - -[modules] -razor-panel=true -razor-desktop=true -razor-appswitcher=false -razor-runner=true -razor-policykit-agent=false - -[environment] -TERM=xterm -BROWSER=arora diff -r ecd657025eda -r 6cfe3e516210 razorqt-appswitcher/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/razorqt-appswitcher/receipt Tue Apr 17 14:21:40 2012 +0200 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="razorqt-appswitcher" +VERSION="0.4.1" +CATEGORY="x-window" +SHORT_DESC="RazorQT Apps switcher plugin." +MAINTAINER="pankso@slitaz.org" +WANTED="razorqt" +WEB_SITE="http://razor-qt.org/" + +DEPENDS="razor-qt" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a $install/usr/bin/razor-appswitcher $fs/usr/bin +} diff -r ecd657025eda -r 6cfe3e516210 razorqt-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/razorqt-dev/receipt Tue Apr 17 14:21:40 2012 +0200 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="razorqt-dev" +VERSION="0.4.1" +CATEGORY="development" +SHORT_DESC="Development files for the QT based Razor desktop" +MAINTAINER="pankso@slitaz.org" +WANTED="razorqt" +WEB_SITE="http://razor-qt.org/" + +DEPENDS="Qt-dev" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/include $fs/usr +} diff -r ecd657025eda -r 6cfe3e516210 razorqt-themes/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/razorqt-themes/receipt Tue Apr 17 14:21:40 2012 +0200 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="razorqt-themes" +VERSION="0.4.1" +CATEGORY="x-window" +SHORT_DESC="Extra themes for RazorQT desktop" +MAINTAINER="pankso@slitaz.org" +WANTED="razorqt" +WEB_SITE="http://razor-qt.org/" + +DEPENDS="razor-qt" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/razor + cp -a $install/usr/share/razor/themes $fs/usr/share/razor + rm -rf $fs/usr/share/razor/themes/light +} diff -r ecd657025eda -r 6cfe3e516210 razorqt/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/razorqt/receipt Tue Apr 17 14:21:40 2012 +0200 @@ -0,0 +1,69 @@ +# SliTaz package receipt. + +PACKAGE="razorqt" +VERSION="0.4.1" +CATEGORY="x-window" +SHORT_DESC="Light and fast QT based Desktop Environment." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://razor-qt.org/" +WGET_URL="https://github.com/downloads/Razor-qt/razor-qt/$TARBALL" +SUGGESTED="razorqt-themes razorqt-appswitcher" + +DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic" +BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev" +# polkit-dev polkit-qt-dev doxygen + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs/usr/share + # Use SliTaz XDG Menu + #cp -a $install/etc $fs + cp -a $install/usr/bin $fs/usr + + # Split plugins ? + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/razor-* $fs/usr/lib + cp -a $install/usr/share/librazorqt $fs/usr/share + cp -a $install/usr/share/razor $fs/usr/share + + # Appswitcher --> razorqt-appswitcher + rm -f $fs/usr/bin/razor-appswitcher + + # Themes --> razorqt-themes + rm -rf $fs/usr/share/razor/themes + mkdir -p $fs/usr/share/razor/themes + cp -a $install/usr/share/razor/themes/light \ + $fs/usr/share/razor/themes + + # Custom SliTaz integration + cp -a $stuff/*.conf $fs/usr/share/razor +} + +post_install() +{ + res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) + # Adding WM to SLIM available sessions. + if ! echo "$res" | grep -q $PACKAGE; then + echo -n "Adding $PACKAGE to /etc/slim.conf..." + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf + status + fi +} + +post_remove() +{ + # Remove WM from SLIM available sessions. + if grep -q $PACKAGE $1/etc/slim.conf; then + sed -i s/,$PACKAGE// $1/etc/slim.conf + fi +} diff -r ecd657025eda -r 6cfe3e516210 razorqt/stuff/desktop.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/razorqt/stuff/desktop.conf Tue Apr 17 14:21:40 2012 +0200 @@ -0,0 +1,23 @@ +[General] +desktop=razor +icon-launch-mode=singleclick + +[wm_native] +icons=true + +[razor] +desktops\size=1 +desktops\1\plugins=iconview_default, analogclock_default +menu_file=/etc/xdg/menus/applications.menu + +[iconview_default] +plugin=iconview +x=10 +y=10 +w=790 +h=590 + +[analogclock_default] +plugin=analogclock +x=-1 +y=1 diff -r ecd657025eda -r 6cfe3e516210 razorqt/stuff/razor.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/razorqt/stuff/razor.conf Tue Apr 17 14:21:40 2012 +0200 @@ -0,0 +1,3 @@ +[General] +theme=light +icon_theme=SliTaz diff -r ecd657025eda -r 6cfe3e516210 razorqt/stuff/session.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/razorqt/stuff/session.conf Tue Apr 17 14:21:40 2012 +0200 @@ -0,0 +1,13 @@ +[General] +windowmanager=openbox + +[modules] +razor-panel=true +razor-desktop=true +razor-appswitcher=false +razor-runner=true +razor-policykit-agent=false + +[environment] +TERM=xterm +BROWSER=arora