[arch-commits] Commit in xfce4-smartbookmark-plugin/trunk (3 files)

andyrtr at archlinux.org andyrtr at archlinux.org
Sun May 23 09:26:11 UTC 2010


    Date: Sunday, May 23, 2010 @ 05:26:11
  Author: andyrtr
Revision: 80895

upgpkg: xfce4-smartbookmark-plugin 0.4.2-8
fix desktop file to work with current xfce4-panel (was broken since 4.6 release; archify it a bit :)

Added:
  xfce4-smartbookmark-plugin/trunk/xfce4-smartbookmark-plugin-0.4.2-desktop-file.patch
  xfce4-smartbookmark-plugin/trunk/xfce4-smartbookmark-plugin-archlinux.patch
Modified:
  xfce4-smartbookmark-plugin/trunk/PKGBUILD

-----------------------------------------------------+
 PKGBUILD                                            |   23 ++++++++++++-----
 xfce4-smartbookmark-plugin-0.4.2-desktop-file.patch |   12 +++++++++
 xfce4-smartbookmark-plugin-archlinux.patch          |   24 ++++++++++++++++++
 3 files changed, 53 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-05-22 16:06:12 UTC (rev 80894)
+++ PKGBUILD	2010-05-23 09:26:11 UTC (rev 80895)
@@ -1,25 +1,36 @@
 # $Id$
-# Maintainer:
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
 # Contributor: Tobias Kieslich <tobias (at) archlinux.org>
 
 pkgname=xfce4-smartbookmark-plugin
 pkgver=0.4.2
-pkgrel=7
+pkgrel=8
 pkgdesc="plugin for the Xfce4 panel that let you quicksearch from selected websites"
 arch=('i686' 'x86_64')
 license=('GPL2')
-url="http://xfce-goodies.berlios.de/"
+url="http://goodies.xfce.org/projects/panel-plugins/xfce4-smartbookmark-plugin"
 groups=('xfce4-goodies')
 depends=('xfce4-panel')
 makedepends=('pkgconfig' 'perlxml' 'libxt')
 options=('!libtool')
-source=(http://goodies.xfce.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('284e26595637dd2e900b75534372496b')
+source=(http://goodies.xfce.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz
+	xfce4-smartbookmark-plugin-0.4.2-desktop-file.patch
+	xfce4-smartbookmark-plugin-archlinux.patch)
+md5sums=('284e26595637dd2e900b75534372496b'
+         'ca6ecc8ff90cc13ef81d6412978dfac7'
+         '323ac898cfcfdb078f67f9ecd1905aec')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
+  # fix path, taken from Fedora
+  patch -Np0 -i ${srcdir}/xfce4-smartbookmark-plugin-0.4.2-desktop-file.patch || return 1
+  patch -Np0 -i ${srcdir}/xfce4-smartbookmark-plugin-archlinux.patch || return 1
   ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 \
     --localstatedir=/var --disable-static
   make || return 1
-  make DESTDIR=${pkgdir} install
 }
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make DESTDIR=${pkgdir} install || return 1
+}

Added: xfce4-smartbookmark-plugin-0.4.2-desktop-file.patch
===================================================================
--- xfce4-smartbookmark-plugin-0.4.2-desktop-file.patch	                        (rev 0)
+++ xfce4-smartbookmark-plugin-0.4.2-desktop-file.patch	2010-05-23 09:26:11 UTC (rev 80895)
@@ -0,0 +1,12 @@
+--- src/smartbookmark.desktop.in.in.orig	2009-07-04 00:28:14.000000000 +0200
++++ src/smartbookmark.desktop.in.in	2009-07-04 00:34:09.000000000 +0200
+@@ -3,6 +3,7 @@
+ Encoding=UTF-8
+ _Name=SmartBookmark
+ _Comment=Query websites from the Xfce panel
+-Icon=gtk-preferences
+-X-XFCE-Module=@INTERNAL_PLUGIN_PATH@/libsmartbookmark.so
++Icon=gtk-find
++X-XFCE-Module=smartbookmark
++X-XFCE-Module-Path=@INTERNAL_PLUGIN_PATH@
+ X-XFCE-Unique=false

Added: xfce4-smartbookmark-plugin-archlinux.patch
===================================================================
--- xfce4-smartbookmark-plugin-archlinux.patch	                        (rev 0)
+++ xfce4-smartbookmark-plugin-archlinux.patch	2010-05-23 09:26:11 UTC (rev 80895)
@@ -0,0 +1,24 @@
+--- src/smartbookmark.c.redhat	2006-12-18 02:06:21.000000000 +0100
++++ src/smartbookmark.c	2006-12-18 02:11:33.000000000 +0100
+@@ -197,8 +197,8 @@
+     box = gtk_vbox_new(FALSE, 0);
+ 
+     /* default options */
+-    search->url = "http://bugs.debian.org/";
+-    search->label_text = "BTS";
++    search->url = "http://bugs.archlinux.org/";
++    search->label_text = "ArchBug #";
+     search->size = 5;
+     search->hide_label = FALSE;
+     /* read config file options */
+@@ -269,8 +269,8 @@
+     if( (rcfile = xfce_rc_simple_open(filename, TRUE) ))
+     {
+         xfce_rc_set_group(rcfile, NULL);
+-        search->url = g_strdup(xfce_rc_read_entry(rcfile,"url","http://bugs.debian.org/"));
+-        search->label_text = g_strdup(xfce_rc_read_entry(rcfile,"value","DBS"));
++        search->url = g_strdup(xfce_rc_read_entry(rcfile,"url","http://bugs.archlinux.org/"));
++        search->label_text = g_strdup(xfce_rc_read_entry(rcfile,"value","ArchBug #"));
+         search->size = xfce_rc_read_int_entry(rcfile, "size", 5);
+         search->hide_label = xfce_rc_read_bool_entry(rcfile, "hidelabel", FALSE);
+     }




More information about the arch-commits mailing list