From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/gnome-panel/PKGBUILD | 54 ++++++++++++++++++++++++++ extra/gnome-panel/evolution-appointments.patch | 13 +++++++ extra/gnome-panel/gnome-panel-bonobo.install | 11 ++++++ extra/gnome-panel/gnome-panel.install | 34 ++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 extra/gnome-panel/PKGBUILD create mode 100644 extra/gnome-panel/evolution-appointments.patch create mode 100644 extra/gnome-panel/gnome-panel-bonobo.install create mode 100644 extra/gnome-panel/gnome-panel.install (limited to 'extra/gnome-panel') diff --git a/extra/gnome-panel/PKGBUILD b/extra/gnome-panel/PKGBUILD new file mode 100644 index 000000000..d7014aab0 --- /dev/null +++ b/extra/gnome-panel/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 108473 2011-01-31 14:15:15Z ibiru $ +# Maintainer: Jan de Groot + +pkgbase=gnome-panel +pkgname=('gnome-panel' 'gnome-panel-bonobo') +pkgver=2.32.1 +pkgrel=2 +arch=('i686' 'x86_64') +license=('GPL') +url="http://www.gnome.org" +makedepends=('libwnck' 'gnome-menus' 'evolution-data-server' 'gnome-desktop' 'libgweather' 'librsvg' 'hicolor-icon-theme' 'libcanberra' 'libbonoboui' 'gnome-doc-utils' 'intltool' 'networkmanager' 'gobject-introspection') +options=('!libtool' '!emptydirs') +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgbase}/2.32/${pkgbase}-${pkgver}.tar.bz2 + evolution-appointments.patch) +sha256sums=('8f7828eb7a21c817a73b697844a4e20256059b32386414a10f97d51e7d9fca5f' + 'c42168cc1377f9dfb2e02ed0b47ee89bdb89d46e82551b9582801fdc375294bb') + +build() { + cd "${srcdir}/${pkgbase}-${pkgver}" + + #https://bugzilla.gnome.org/show_bug.cgi?id=633566 + patch -Np1 -i "${srcdir}/evolution-appointments.patch" + + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static \ + --libexecdir=/usr/lib/gnome-panel \ + --disable-scrollkeeper + make + sed -e 's/$(am__append_1)//' -i Makefile +} + +package_gnome-panel() { + pkgdesc="The GNOME Panel" + depends=('gnome-menus>=2.30.5' 'gnome-desktop>=2.32.1' 'evolution-data-server>=2.32.1' 'librsvg>=2.32.1' 'libcanberra>=0.25' 'libwnck>=2.30.6' 'hicolor-icon-theme') + optdepends=('gnome-panel-bonobo: libbonoboui-based applet support') + groups=('gnome') + install=gnome-panel.install + cd "${srcdir}/${pkgbase}-${pkgver}" + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install + + install -m755 -d "${pkgdir}/usr/share/gconf/schemas" + gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain gnome-panel-2.0 ${pkgdir}/etc/gconf/schemas/*.schemas + rm -f ${pkgdir}/etc/gconf/schemas/*.schemas +} + +package_gnome-panel-bonobo() { + pkgdesc="Modules for libbonoboui-based applet support for the GNOME Panel" + depends=('libbonoboui>=2.24.3' "gnome-panel=${pkgver}") + conflicts=('gnome-panel<2.31.92') + install=gnome-panel-bonobo.install + + cd "${srcdir}/${pkgbase}-${pkgver}" + make -C bonobo "${pkgdir}" DESTDIR="${pkgdir}" install +} diff --git a/extra/gnome-panel/evolution-appointments.patch b/extra/gnome-panel/evolution-appointments.patch new file mode 100644 index 000000000..c4831adf2 --- /dev/null +++ b/extra/gnome-panel/evolution-appointments.patch @@ -0,0 +1,13 @@ +diff --git a/applets/clock/calendar-window.c b/applets/clock/calendar-window.c +index 932ebda..bfad14e 100644 +--- a/applets/clock/calendar-window.c ++++ b/applets/clock/calendar-window.c +@@ -450,6 +450,8 @@ is_appointment (GtkTreeModel *model, + gtk_tree_model_get (model, iter, APPOINTMENT_COLUMN_URI, &uri, -1); + if (uri) + return (g_ascii_strcasecmp (uri, "file") == 0 || ++ g_ascii_strcasecmp (uri, "local") == 0 || ++ g_ascii_strcasecmp (uri, "mapi") == 0 || + g_ascii_strcasecmp (uri, "webcal") == 0 || + g_ascii_strcasecmp (uri, "caldav") == 0 || + g_ascii_strcasecmp (uri, "exchange") == 0 || diff --git a/extra/gnome-panel/gnome-panel-bonobo.install b/extra/gnome-panel/gnome-panel-bonobo.install new file mode 100644 index 000000000..0bc8c431e --- /dev/null +++ b/extra/gnome-panel/gnome-panel-bonobo.install @@ -0,0 +1,11 @@ +post_install() { + usr/bin/gio-querymodules usr/lib/gnome-panel/modules +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} diff --git a/extra/gnome-panel/gnome-panel.install b/extra/gnome-panel/gnome-panel.install new file mode 100644 index 000000000..7fef8cf05 --- /dev/null +++ b/extra/gnome-panel/gnome-panel.install @@ -0,0 +1,34 @@ +pkgname=gnome-panel + +post_install() { + GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source` + usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --load \ + etc/gconf/schemas/panel-default-setup.entries >/dev/null + usr/sbin/gconfpkg --install ${pkgname} + + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source` + if [ -f opt/gnome/etc/gconf/schemas/panel-default-setup.entries ]; then + usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --unload \ + opt/gnome/etc/gconf/schemas/panel-default-setup.entries >/dev/null + else + usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --unload \ + etc/gconf/schemas/panel-default-setup.entries > /dev/null + fi + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} -- cgit v1.2.3-54-g00ecf