From 2c780df73f79357338e0814a661315510cefbe68 Mon Sep 17 00:00:00 2001 From: "Edinaldo P. Silva" Date: Fri, 13 Nov 2015 02:01:26 +0700 Subject: desktop/openbox-menu: Update DEP. Signed-off-by: Willy Sudiarto Raharjo --- desktop/openbox-menu/README | 17 ++++-- desktop/openbox-menu/debian_build.patch | 15 +++++ desktop/openbox-menu/menu.xml-sample | 90 ++++++++++++++++++++++++++++ desktop/openbox-menu/openbox-menu.1 | 45 ++++++++++++++ desktop/openbox-menu/openbox-menu.SlackBuild | 24 ++++++-- desktop/openbox-menu/openbox-menu.info | 2 +- 6 files changed, 182 insertions(+), 11 deletions(-) create mode 100644 desktop/openbox-menu/debian_build.patch create mode 100644 desktop/openbox-menu/menu.xml-sample create mode 100644 desktop/openbox-menu/openbox-menu.1 (limited to 'desktop') diff --git a/desktop/openbox-menu/README b/desktop/openbox-menu/README index 39f000ecd4..fe7c13b617 100644 --- a/desktop/openbox-menu/README +++ b/desktop/openbox-menu/README @@ -1,7 +1,16 @@ openbox-menu (pipemenu for Openbox window manager) -Openbox-menu is a pipemenu for Openbox window manager. -It provides a dynamic menu listing installed applications. -Most of the work is done by the LXDE library menu-cache. +Openbox-menu is a pipemenu for Openbox window manager. It provides a +dynamic menu listing installed applications. Most of the work is done +by the LXDE library menu-cache. -Optional dependencies: gnome-menus, lxmenu-data. +Optional dependencie: gnome-menus. + +To use, get a copy of menu.xml located in /usr/doc/openbox-menu-0.7.0 +and put into ~/.config/openbox, after run: + +$ openbox --reconfigure + +In menu.xml these programs are included (thunar, leafpad, sakura, opera, +obmenu, obconf, lxappearance, obsession, nitrogen, gmrun), all available +on SlackBuilds, change if needed. diff --git a/desktop/openbox-menu/debian_build.patch b/desktop/openbox-menu/debian_build.patch new file mode 100644 index 0000000000..553825e20d --- /dev/null +++ b/desktop/openbox-menu/debian_build.patch @@ -0,0 +1,15 @@ +Description: Make makefile compatible with Debian's standards. +Author: Mateusz Łukasik +Last-Update: 2013-11-30 + +--- a/Makefile ++++ b/Makefile +@@ -7,7 +7,7 @@ CC=gcc + CFLAGS+=-DWITH_ICONS + # Uncomment this line if Openbox can display SVG icons + # Check SVG support with '$ ldd /usr/bin/openbox | grep svg', librsvg must appear.. +-# CFLAGS+=-DWITH_SVG ++CFLAGS+=-DWITH_SVG + + prefix= /usr/local + DESTDIR ?= $(prefix) diff --git a/desktop/openbox-menu/menu.xml-sample b/desktop/openbox-menu/menu.xml-sample new file mode 100644 index 0000000000..1e7ed3ae55 --- /dev/null +++ b/desktop/openbox-menu/menu.xml-sample @@ -0,0 +1,90 @@ + + + + + + + + + + thunar + + + + + sakura + + + + + leafpad + + + + + opera + + + + + + + nitrogen --sort=alpha ~/Images/ + + + + + lxappearance + + + + + leafpad ~/.config/openbox/autostart + + + + + leafpad ~/.config/openbox/menu.xml + + + + + leafpad ~/.config/openbox/rc.xml + + + + + leafpad ~/.xinitrc + + + + + obmenu + + + + + obconf + + + + + + + + + + + + + gmrun + + + + + + obsession-logout + + + + diff --git a/desktop/openbox-menu/openbox-menu.1 b/desktop/openbox-menu/openbox-menu.1 new file mode 100644 index 0000000000..a496936d53 --- /dev/null +++ b/desktop/openbox-menu/openbox-menu.1 @@ -0,0 +1,45 @@ +.TH OPENBOX-MENU "1" "November 2013" +.SH NAME +openbox-menu \- Openbox pipe-menu to display entries in *.desktop files +.SH DESCRIPTION +.SS "Usage:" +.TP +openbox\-menu [OPTION...] [file.menu] +.SS "Help Options:" +.TP +\fB\-h\fR, \fB\-\-help\fR +Show help options +.SS "Application Options:" +.TP +\fB\-c\fR, \fB\-\-comment\fR +Show generic name instead of application name +.TP +\fB\-t\fR, \fB\-\-terminal\fR=\fIcmd\fR +Terminal command (default xterm \fB\-e\fR) +.TP +\fB\-g\fR, \fB\-\-gnome\fR +Show GNOME entries +.TP +\fB\-k\fR, \fB\-\-kde\fR +Show KDE entries +.TP +\fB\-x\fR, \fB\-\-xfce\fR +Show XFCE entries +.TP +\fB\-r\fR, \fB\-\-rox\fR +Show ROX entries +.TP +\fB\-p\fR, \fB\-\-persistent\fR +stay active +.TP +\fB\-s\fR, \fB\-\-sn\fR +Enable startup notification +.TP +\fB\-o\fR, \fB\-\-output\fR +file to write data to +.TP +\fB\-i\fR, \fB\-\-noicons\fR +Don't display icons in menu +.PP +This manual page was written by Mateusz Łukasik , +for the Debian project (and may be used by others). diff --git a/desktop/openbox-menu/openbox-menu.SlackBuild b/desktop/openbox-menu/openbox-menu.SlackBuild index 2882509fbd..7dccec5299 100644 --- a/desktop/openbox-menu/openbox-menu.SlackBuild +++ b/desktop/openbox-menu/openbox-menu.SlackBuild @@ -1,6 +1,7 @@ #!/bin/sh +# # Slackware build script for openbox-menu. - +# # Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # @@ -23,7 +24,7 @@ PRGNAM=openbox-menu VERSION=${VERSION:-0.7.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -68,25 +69,36 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +rm -rf {archlinux,.hg*} + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +patch -p1 < $CWD/debian_build.patch + make PREFIX=/usr make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +rm -rf $PKG/bin +install -d $PKG/usr/bin +install -D -m755 openbox-menu $PKG/usr/bin/openbox-menu + +install -d $PKG/usr/man/man1 +install -D -m644 $CWD/openbox-menu.1 $PKG/usr/man/man1/openbox-menu.1 + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + DOCS="AUTHORS ChangeLog COPYING README.md THANKS TODO" mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $CWD/menu.xml-sample $PKG/usr/doc/$PRGNAM-$VERSION/menu.xml-sample cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -rm -rf $PKG/bin -mkdir -p $PKG/usr/bin -cp openbox-menu $PKG/usr/bin - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh diff --git a/desktop/openbox-menu/openbox-menu.info b/desktop/openbox-menu/openbox-menu.info index 85a04b9a40..2e3e129bf0 100644 --- a/desktop/openbox-menu/openbox-menu.info +++ b/desktop/openbox-menu/openbox-menu.info @@ -5,6 +5,6 @@ DOWNLOAD="https://bitbucket.org/fabriceT/openbox-menu/downloads/openbox-menu-0.7 MD5SUM="bd7e746452931e48340788c9e8ececa4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="menu-cache" +REQUIRES="menu-cache lxmenu-data" MAINTAINER="Edinaldo P. Silva" EMAIL="edps.mundognu@gmail.com" -- cgit v1.2.3