# HG changeset patch # User Christophe Lincoln # Date 1351948797 -3600 # Node ID f378aed899f6a510b7dce94cd20691c201bbb385 # Parent 46a3af621a1de125931d1b4e16c873fb839a01b3 Add openbox-imlib2 (avoid dep on imlim2 for default ob, do we realy need icons in menus ?) diff -r 46a3af621a1d -r f378aed899f6 openbox-imlib2/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openbox-imlib2/receipt Sat Nov 03 14:19:57 2012 +0100 @@ -0,0 +1,68 @@ +# SliTaz package receipt. + +PACKAGE="openbox-imlib2" +VERSION="3.5.0" +SOURCE="openbox" +CATEGORY="x-window" +SHORT_DESC="Small-footprint and standard compliant Window Manager (Allow icons in menus)." +SUGGESTED="obconf pcmanfm hsetroot" +MAINTAINER="pankso@slitaz.org" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://openbox.org/" +WGET_URL="http://openbox.org/dist/openbox/$TARBALL" +TAGS="window-manager wm" +PROVIDE="openbox" + +DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \ +xorg-libXrandr xorg-libXft libxml2 imlib2 slitaz-configs" +BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \ +xorg-libXft-dev util-linux-uuid-dev libxml2-dev imlib2-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + chmod +x install-sh + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/openbox \ + $CONFIGURE_ARGS && + sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile && + make && + make -j1 DESTDIR=$DESTDIR install && + rm -rf $install/usr/share/applications +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/openbox $fs/usr/lib + + # We dont have GNOME or KDE + rm $fs/usr/bin/openbox-gnome-session + rm $fs/usr/bin/openbox-kde-session + rm $fs/usr/bin/gnome-panel-control + rm $fs/usr/bin/gdm-control + chmod 0755 $fs/usr/bin/openbox-session + + # Python XDG script --> openbox-python + rm -f $fs/usr/lib/openbox/openbox-xdg-autostart + patch -p1 $fs/usr/lib/openbox/openbox-autostart \ + -i $stuff/openbox-autostart.patch || exit 1 + + # Just Onyx Themes --> openbox-themes + cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes + + # Xsessions + cp -a $stuff/xsessions $fs/usr/share + + # Pipe menu. + cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox + + # Set perms. + chown -R root.root $fs +} diff -r 46a3af621a1d -r f378aed899f6 openbox-imlib2/stuff/open-folder-menu.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openbox-imlib2/stuff/open-folder-menu.sh Sat Nov 03 14:19:57 2012 +0100 @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Openbox pipe menu to launch PCmanFM using GTK bookmarks. +# + +echo '' + +# Home +echo '' +echo '' +echo "pcmanfm ~" +echo '' + +# ~/Desktop +echo '' +echo '' +echo "pcmanfm ~/Desktop" +echo '' + +# GTK bookmarks +for dir in `sed 's/[ ][^ ]*$//' .gtk-bookmarks` +do + echo '' + echo '' + echo "pcmanfm $dir" + echo '' +done + +echo '' diff -r 46a3af621a1d -r f378aed899f6 openbox-imlib2/stuff/openbox-autostart.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openbox-imlib2/stuff/openbox-autostart.patch Sat Nov 03 14:19:57 2012 +0100 @@ -0,0 +1,8 @@ +--- openbox-autostart.org ++++ openbox-autostart +@@ -31,4 +31,4 @@ + # Run the XDG autostart stuff. These are found in /etc/xdg/autostart and + # in $HOME/.config/autostart. This requires PyXDG to be installed. + # See openbox-xdg-autostart --help for more details. +-/usr/lib/openbox/openbox-xdg-autostart "$@" ++/usr/lib/openbox/openbox-xdg-autostart "$@" || continue diff -r 46a3af621a1d -r f378aed899f6 openbox-imlib2/stuff/xsessions/openbox.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openbox-imlib2/stuff/xsessions/openbox.desktop Sat Nov 03 14:19:57 2012 +0100 @@ -0,0 +1,6 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=XSession +Name=OpenBox Session +Icon=openbox +Exec=openbox-session diff -r 46a3af621a1d -r f378aed899f6 openbox/receipt --- a/openbox/receipt Sat Nov 03 14:18:38 2012 +0100 +++ b/openbox/receipt Sat Nov 03 14:19:57 2012 +0100 @@ -4,7 +4,7 @@ VERSION="3.5.0" CATEGORY="x-window" SHORT_DESC="Small-footprint and standard compliant Window Manager." -SUGGESTED="obconf pcmanfm hsetroot slitaz-configs" +SUGGESTED="obconf pcmanfm hsetroot" MAINTAINER="pankso@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://openbox.org/" @@ -12,9 +12,9 @@ TAGS="window-manager wm" DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \ -xorg-libXrandr xorg-libXft libxml2 imlib2 slitaz-configs" +xorg-libXrandr xorg-libXft libxml2 slitaz-configs" BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \ -xorg-libXft-dev util-linux-uuid-dev libxml2-dev imlib2-dev" +xorg-libXft-dev util-linux-uuid-dev libxml2-dev" # Rules to configure and make the package. compile_rules() @@ -39,25 +39,25 @@ cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/openbox $fs/usr/lib - + # We dont have GNOME or KDE rm $fs/usr/bin/openbox-gnome-session rm $fs/usr/bin/openbox-kde-session rm $fs/usr/bin/gnome-panel-control rm $fs/usr/bin/gdm-control chmod 0755 $fs/usr/bin/openbox-session - + # Python XDG script --> openbox-python rm -f $fs/usr/lib/openbox/openbox-xdg-autostart patch -p1 $fs/usr/lib/openbox/openbox-autostart \ -i $stuff/openbox-autostart.patch || exit 1 - + # Just Onyx Themes --> openbox-themes cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes - + # Xsessions cp -a $stuff/xsessions $fs/usr/share - + # Pipe menu. cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox