Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=02ee2ab3902f641e9156bec0156193f540345f9c
commit 02ee2ab3902f641e9156bec0156193f540345f9c
Author: James Buren <[EMAIL PROTECTED]>
Date: Fri Jul 18 14:42:02 2008 -0500
icewm-1.2.35-4-i686
* added a shell script for easier usage of dynamic menus
* added exampe file and frugalware readme for new script
diff --git a/source/x11-extra/icewm/FrugalBuild
b/source/x11-extra/icewm/FrugalBuild
index eebd38a..2df3e4a 100644
--- a/source/x11-extra/icewm/FrugalBuild
+++ b/source/x11-extra/icewm/FrugalBuild
@@ -3,18 +3,20 @@
pkgname=icewm
pkgver=1.2.35
-pkgrel=3
+pkgrel=4
pkgdesc="A window manager, whose goal is speed and simplicity."
pkgdesc_localized=('hu_HU Egy ablakkezelõ, melynek célja a sebesség és az
egyszerûség.')
depends=('libxinerama' 'libsm' 'libxrandr' 'libxft' 'zlib' 'imlib' 'libstdc++')
groups=('x11-extra')
archs=('i686' 'x86_64')
Finclude sourceforge
-source=([EMAIL PROTECTED] icewm-init xinitrc.icewm icewm.desktop)
+source=([EMAIL PROTECTED] icewm-init xinitrc.icewm icewm.desktop icewm-menus
menus)
sha1sums=('a0174901ca89aa091a58efedfec1536c5e477210' \
'01edd20ff307234d9309d08a79eb6297cf88b59b' \
'7db19bed16870c0b479b7c73726f3ff0ba601d48' \
- 'b60afde7b3c3475215f57b3d75bf3c1eb347e198')
+ 'b60afde7b3c3475215f57b3d75bf3c1eb347e198' \
+ '175c6f73c24dcb644d5c0380159dce18561fc8da' \
+ 'f14565ac61a87524a4023371cc9724308ef4849b')
build()
{
@@ -24,5 +26,7 @@ build()
Ffile /etc/X11/sessions/icewm.desktop
Fexe /etc/X11/xinit/xinitrc.icewm
Fexe /usr/bin/icewm-init
+ Fexe /usr/bin/icewm-menus
+ Ffile /usr/share/icewm/menus
}
diff --git a/source/x11-extra/icewm/README.Frugalware
b/source/x11-extra/icewm/README.Frugalware
new file mode 100644
index 0000000..2bf4bf5
--- /dev/null
+++ b/source/x11-extra/icewm/README.Frugalware
@@ -0,0 +1,8 @@
+I have included a custom shell script called icewm-menus, for use with the
icewm
+menu file. An example menus file is also include at /usr/share/icewm/menus. It
+uses standard shell syntax, so you can easily use shell variables, etc, to
+create dynamic menus in icewm through my script and the usage of your local
+$HOME/.icewm/menus file. To use it, use the following syntax in your menu file:
+menuprog "(folder name)" (icon name) icewm-menus (menu switch to use)
+If setup correctly, you'll wind up with menus generated by the output of the
+shell script. Have fun configuring icewm.
diff --git a/source/x11-extra/icewm/icewm-menus
b/source/x11-extra/icewm/icewm-menus
new file mode 100644
index 0000000..52e3148
--- /dev/null
+++ b/source/x11-extra/icewm/icewm-menus
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+prog()
+{
+ echo "prog \"$1\" $2 $3"
+}
+
+if [ ! -f "$HOME/.icewm/menus" ]; then
+ echo "Unable to find $HOME/.icewm/menus."
+ exit 1
+else
+ source "$HOME/.icewm/menus"
+fi
diff --git a/source/x11-extra/icewm/menus b/source/x11-extra/icewm/menus
new file mode 100644
index 0000000..5f748f2
--- /dev/null
+++ b/source/x11-extra/icewm/menus
@@ -0,0 +1,12 @@
+case $1 in
+
+--terminals)
+ prog "XTerm" xterm "xterm";;
+
+--multimedia)
+ prog "VLC" vlc "vlc";;
+
+--network)
+ prog "Firefox" firefox "firefox";;
+
+esac
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git