wok-next rev 13564
Add openbox-imlib2 (avoid dep on imlim2 for default ob, do we realy need icons in menus ?)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Nov 03 14:19:57 2012 +0100 (2012-11-03) |
parents | 46a3af621a1d |
children | a95a29f222cc |
files | openbox-imlib2/receipt openbox-imlib2/stuff/open-folder-menu.sh openbox-imlib2/stuff/openbox-autostart.patch openbox-imlib2/stuff/xsessions/openbox.desktop openbox/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/openbox-imlib2/receipt Sat Nov 03 14:19:57 2012 +0100 1.3 @@ -0,0 +1,68 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="openbox-imlib2" 1.7 +VERSION="3.5.0" 1.8 +SOURCE="openbox" 1.9 +CATEGORY="x-window" 1.10 +SHORT_DESC="Small-footprint and standard compliant Window Manager (Allow icons in menus)." 1.11 +SUGGESTED="obconf pcmanfm hsetroot" 1.12 +MAINTAINER="pankso@slitaz.org" 1.13 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://openbox.org/" 1.15 +WGET_URL="http://openbox.org/dist/openbox/$TARBALL" 1.16 +TAGS="window-manager wm" 1.17 +PROVIDE="openbox" 1.18 + 1.19 +DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \ 1.20 +xorg-libXrandr xorg-libXft libxml2 imlib2 slitaz-configs" 1.21 +BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \ 1.22 +xorg-libXft-dev util-linux-uuid-dev libxml2-dev imlib2-dev" 1.23 + 1.24 +# Rules to configure and make the package. 1.25 +compile_rules() 1.26 +{ 1.27 + cd $src 1.28 + chmod +x install-sh 1.29 + ./configure \ 1.30 + --prefix=/usr \ 1.31 + --sysconfdir=/etc \ 1.32 + --libexecdir=/usr/lib/openbox \ 1.33 + $CONFIGURE_ARGS && 1.34 + sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile && 1.35 + make && 1.36 + make -j1 DESTDIR=$DESTDIR install && 1.37 + rm -rf $install/usr/share/applications 1.38 +} 1.39 + 1.40 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.41 +genpkg_rules() 1.42 +{ 1.43 + mkdir -p $fs/usr/lib/openbox $fs/usr/share/themes 1.44 + cp -a $install/usr/bin $fs/usr 1.45 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.46 + cp -a $install/usr/lib/openbox $fs/usr/lib 1.47 + 1.48 + # We dont have GNOME or KDE 1.49 + rm $fs/usr/bin/openbox-gnome-session 1.50 + rm $fs/usr/bin/openbox-kde-session 1.51 + rm $fs/usr/bin/gnome-panel-control 1.52 + rm $fs/usr/bin/gdm-control 1.53 + chmod 0755 $fs/usr/bin/openbox-session 1.54 + 1.55 + # Python XDG script --> openbox-python 1.56 + rm -f $fs/usr/lib/openbox/openbox-xdg-autostart 1.57 + patch -p1 $fs/usr/lib/openbox/openbox-autostart \ 1.58 + -i $stuff/openbox-autostart.patch || exit 1 1.59 + 1.60 + # Just Onyx Themes --> openbox-themes 1.61 + cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes 1.62 + 1.63 + # Xsessions 1.64 + cp -a $stuff/xsessions $fs/usr/share 1.65 + 1.66 + # Pipe menu. 1.67 + cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox 1.68 + 1.69 + # Set perms. 1.70 + chown -R root.root $fs 1.71 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/openbox-imlib2/stuff/open-folder-menu.sh Sat Nov 03 14:19:57 2012 +0100 2.3 @@ -0,0 +1,29 @@ 2.4 +#!/bin/sh 2.5 +# 2.6 +# Openbox pipe menu to launch PCmanFM using GTK bookmarks. 2.7 +# 2.8 + 2.9 +echo '<openbox_pipe_menu>' 2.10 + 2.11 +# Home 2.12 +echo '<item label="Home">' 2.13 +echo '<action name="Execute"><execute>' 2.14 +echo "pcmanfm ~" 2.15 +echo '</execute></action></item>' 2.16 + 2.17 +# ~/Desktop 2.18 +echo '<item label="Desktop">' 2.19 +echo '<action name="Execute"><execute>' 2.20 +echo "pcmanfm ~/Desktop" 2.21 +echo '</execute></action></item>' 2.22 + 2.23 +# GTK bookmarks 2.24 +for dir in `sed 's/[ ][^ ]*$//' .gtk-bookmarks` 2.25 +do 2.26 + echo '<item label="'`basename $dir`'">' 2.27 + echo '<action name="Execute"><execute>' 2.28 + echo "pcmanfm $dir" 2.29 + echo '</execute></action></item>' 2.30 +done 2.31 + 2.32 +echo '</openbox_pipe_menu>'
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/openbox-imlib2/stuff/openbox-autostart.patch Sat Nov 03 14:19:57 2012 +0100 3.3 @@ -0,0 +1,8 @@ 3.4 +--- openbox-autostart.org 3.5 ++++ openbox-autostart 3.6 +@@ -31,4 +31,4 @@ 3.7 + # Run the XDG autostart stuff. These are found in /etc/xdg/autostart and 3.8 + # in $HOME/.config/autostart. This requires PyXDG to be installed. 3.9 + # See openbox-xdg-autostart --help for more details. 3.10 +-/usr/lib/openbox/openbox-xdg-autostart "$@" 3.11 ++/usr/lib/openbox/openbox-xdg-autostart "$@" || continue
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/openbox-imlib2/stuff/xsessions/openbox.desktop Sat Nov 03 14:19:57 2012 +0100 4.3 @@ -0,0 +1,6 @@ 4.4 +[Desktop Entry] 4.5 +Encoding=UTF-8 4.6 +Type=XSession 4.7 +Name=OpenBox Session 4.8 +Icon=openbox 4.9 +Exec=openbox-session
5.1 --- a/openbox/receipt Sat Nov 03 14:18:38 2012 +0100 5.2 +++ b/openbox/receipt Sat Nov 03 14:19:57 2012 +0100 5.3 @@ -4,7 +4,7 @@ 5.4 VERSION="3.5.0" 5.5 CATEGORY="x-window" 5.6 SHORT_DESC="Small-footprint and standard compliant Window Manager." 5.7 -SUGGESTED="obconf pcmanfm hsetroot slitaz-configs" 5.8 +SUGGESTED="obconf pcmanfm hsetroot" 5.9 MAINTAINER="pankso@slitaz.org" 5.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 5.11 WEB_SITE="http://openbox.org/" 5.12 @@ -12,9 +12,9 @@ 5.13 TAGS="window-manager wm" 5.14 5.15 DEPENDS="startup-notification pango glib xorg-libX11 fontconfig freetype \ 5.16 -xorg-libXrandr xorg-libXft libxml2 imlib2 slitaz-configs" 5.17 +xorg-libXrandr xorg-libXft libxml2 slitaz-configs" 5.18 BUILD_DEPENDS="xorg-dev pango-dev glib-dev startup-notification-dev \ 5.19 -xorg-libXft-dev util-linux-uuid-dev libxml2-dev imlib2-dev" 5.20 +xorg-libXft-dev util-linux-uuid-dev libxml2-dev" 5.21 5.22 # Rules to configure and make the package. 5.23 compile_rules() 5.24 @@ -39,25 +39,25 @@ 5.25 cp -a $install/usr/bin $fs/usr 5.26 cp -a $install/usr/lib/*.so* $fs/usr/lib 5.27 cp -a $install/usr/lib/openbox $fs/usr/lib 5.28 - 5.29 + 5.30 # We dont have GNOME or KDE 5.31 rm $fs/usr/bin/openbox-gnome-session 5.32 rm $fs/usr/bin/openbox-kde-session 5.33 rm $fs/usr/bin/gnome-panel-control 5.34 rm $fs/usr/bin/gdm-control 5.35 chmod 0755 $fs/usr/bin/openbox-session 5.36 - 5.37 + 5.38 # Python XDG script --> openbox-python 5.39 rm -f $fs/usr/lib/openbox/openbox-xdg-autostart 5.40 patch -p1 $fs/usr/lib/openbox/openbox-autostart \ 5.41 -i $stuff/openbox-autostart.patch || exit 1 5.42 - 5.43 + 5.44 # Just Onyx Themes --> openbox-themes 5.45 cp -a $install/usr/share/themes/Onyx* $fs/usr/share/themes 5.46 - 5.47 + 5.48 # Xsessions 5.49 cp -a $stuff/xsessions $fs/usr/share 5.50 - 5.51 + 5.52 # Pipe menu. 5.53 cp $stuff/open-folder-menu.sh $fs/usr/lib/openbox 5.54