You are not logged in.

#1 2004-09-13 12:49:41

sweiss
Member
Registered: 2004-02-16
Posts: 635

[x11] Deskmenu

Deskmenu is a part of the apperently dead Oroborus project. It provides a simple GTK2 based root menu. It is useful for people who are using, for example, XFCE4 and would like to use some desktop icons without losing xfdesktop's right-click menu.

Deskmenu is supported by MenuMaker and it seems to work fine here, I'm using ROX-Filer as a desktop instead of xfdesktop and it seems to work nicely.

As the sources were a bit out-dated I had to patch them in order to work and I hope my patching didn't cause any damage to the program's functionality.

Anyway, here's the PKGBUILD:

pkgname=deskmenu
pkgver=1.4.0
pkgrel=1
_pkgrel=2
pkgdesc="DeskMenu is a root menu program which is activated by clicking the root window."
url="http://www.oroborus.org"
license="GPL"
depends=('gtk2' 'x-server')
source=($url/debian/dists/sid/main/source/x11/$pkgname_$pkgver-$_pkgrel.tar.gz patch.diff)
md5sums=('bada21720d2b1ea28421c2a7448f5f87' 'bb9dd5fb00ffb46e7c9d7f31d2bb8a40')

build() {
  cd $startdir/src/$pkgname-$pkgver/src
  patch -p0 < $startdir/patch.diff
  
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

And here's patch.diff:

--- deskmenu.c  2002-08-05 14:44:32.000000000 +0300
+++ deskmenu.c  2004-09-13 10:02:40.000000000 +0300
@@ -360,10 +360,10 @@
 void
 usage (int status)
 {
-  printf (_("%s - 
-A root menu for X.n"), program_name);
-  printf (_("Usage: %s [OPTION]... n"), program_name);
-  printf (_("
+  printf ("%s - 
+A root menu for X.n", program_name);
+  printf ("Usage: %s [OPTION]... n", program_name);
+  printf ("
 Options:n
   -b, --button=n             sets which mouse button is usedn
                              to invoke deskmenun
@@ -373,9 +373,9 @@
   --verbose                  print more informationn
   -h, --help                 display this help and exitn
   -V, --version              output version information and exitn
-  --display                  use an alternative display instead of,
+  --display                  use an alternative display instead of
                              $DISPLAYn
-"));
+");
   exit (status);
 }
 
--- xmalloc.c   2002-06-14 06:40:52.000000000 +0300
+++ xmalloc.c   2004-09-13 10:35:45.000000000 +0300
@@ -44,7 +44,7 @@
 # define _(Text) Text
 #endif
 
-#include "error.h"
+#include <error.h>
 
 #ifndef EXIT_FAILURE
 # define EXIT_FAILURE 1
@@ -64,11 +64,11 @@
    The caller may set it to some other value.  */
 int xmalloc_exit_failure = EXIT_FAILURE;
 
-#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT)
+//#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT)
 void error (int, int, const char *, ...);
-#else
-void error ();
-#endif
+//#else
+//void error ();
+//#endif
 
 static VOID *
 fixup_null_alloc (n)
@@ -80,7 +80,7 @@
   if (n == 0)
     p = malloc ((size_t) 1);
   if (p == 0)
-    error (xmalloc_exit_failure, 0, _("Memory exhausted"));
+    error (xmalloc_exit_failure, 0, "Memory exhausted");
   return p;
 }

Enjoy.

Offline

#2 2004-09-16 00:01:40

jlvsimoes
Member
From: portugal
Registered: 2002-12-23
Posts: 392
Website

Re: [x11] Deskmenu

[routty.net.dhis.org]
Server = http://routty.net.dhis.org/packages/
   1. aMule-20040821-1.pkg.tar.gz
   2. acidrip-0.12-2.pkg.tar.gz
   3. alien-8.46-2.pkg.tar.gz
   4. apache-2.0.50-4nptl.pkg.tar.gz
   5. aspell-pt-0.50-1.pkg.tar.gz
   6. crypto++-5.2.1nptl-1.pkg.tar.gz
   7. eggdrop-1.6.16-2.pkg.tar.gz
   8. fbgrab-1.0-1.pkg.tar.gz
   9. gcc-3.4.1-2.pkg.tar.gz
  10. gxine-0.3.3-5.pkg.tar.gz
  11. icecast-2.0.1-2.pkg.tar.gz
  12. libbtctl-0.3-1.pkg.tar.gz
  13. mysqltcl-2.50-1.pkg.tar.gz
  14. narc-0.6.3-1.pkg.tar.gz
  15. netlist-2.0-1.pkg.tar.gz
  16. powertweak-0.99.5-1.pkg.tar.gz
  17. python-gammu-0.5-1.pkg.tar.gz
  18. twin-0.5.1-1.pkg.tar.gz
  19. vpenis-1-3nptl.pkg.tar.gz
  20. xvid4conf-1.12-1.pkg.tar.gz
  21. splint-3.1.1-1.pkg.tar.gz
  22. deskmenu-1.3.0-2.pkg.tar.gz
  23. bgrab-1.0-1.pkg.tar.gz
  24. xfce4-cvs-20040906-1.pkg.tar.gz

comited or notcrypto++
abuse
k3b
aspell-pt
osiris
narc/
crypto++
alien
gxine
eggdrop
netlist
vpenis
chromium
deskmenu
libmysqltcl
libmysqltcl
php-gtk
powertweak
sinek
splint


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------

Offline

#3 2004-09-16 06:57:18

sweiss
Member
Registered: 2004-02-16
Posts: 635

Re: [x11] Deskmenu

I see. Anyway, the PKGBUILD fits the latest version of Deskmenu.

Offline

Board footer

Powered by FluxBB