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 --- community/osmo/ChangeLog | 12 +++++++ community/osmo/PKGBUILD | 36 +++++++++++++++++++ community/osmo/osmo-0.2.10-libnotify-0.7.patch | 48 ++++++++++++++++++++++++++ community/osmo/osmo.install | 12 +++++++ 4 files changed, 108 insertions(+) create mode 100644 community/osmo/ChangeLog create mode 100644 community/osmo/PKGBUILD create mode 100644 community/osmo/osmo-0.2.10-libnotify-0.7.patch create mode 100644 community/osmo/osmo.install (limited to 'community/osmo') diff --git a/community/osmo/ChangeLog b/community/osmo/ChangeLog new file mode 100644 index 000000000..d6c25b63f --- /dev/null +++ b/community/osmo/ChangeLog @@ -0,0 +1,12 @@ +2010-04-04 Jaroslav Lichtblau + * FS#18941 solved + +2010-04-02 Jaroslav Lichtblau + * Update to major release 0.2.10 + +2009-03-26 Jaroslav Lichtblau + * FS#13879 solved + +2009-03-17 Jaroslav Lichtblau + * Updated to major version 0.2.6 + diff --git a/community/osmo/PKGBUILD b/community/osmo/PKGBUILD new file mode 100644 index 000000000..85cd6cf49 --- /dev/null +++ b/community/osmo/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 41472 2011-03-06 22:23:29Z heftig $ +# Maintainer: Jaroslav Lichtblau +# Contributor: Geoffroy Carrier +# Contributor: Benzo + +pkgname=osmo +pkgver=0.2.10 +pkgrel=5 +pkgdesc="A handy personal organizer" +arch=('i686' 'x86_64') +url="http://clayo.org/osmo/" +license=('GPL') +depends=('gtk2>=2.12' 'gtkspell' 'hicolor-icon-theme' 'libical' 'libnotify' 'libgtkhtml' 'libgringotts>=1.2.1' 'libxml2') +makedepends=('pkgconfig' 'libtar') +optdepends=('sox: to play sounds') +install=$pkgname.install +source=(http://downloads.sourceforge.net/osmo-pim/$pkgname-$pkgver.tar.gz + osmo-0.2.10-libnotify-0.7.patch) +md5sums=('a774db748228efee96186158d553ade9' + '0b146a548f2d3208dc88e6501a8f3448') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + patch -Np0 -i "$srcdir/osmo-0.2.10-libnotify-0.7.patch" + + #libical 0.4.4 workaround + LIBICAL_CFLAGS='-I/usr/include/libical' ./configure --prefix=/usr + + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} diff --git a/community/osmo/osmo-0.2.10-libnotify-0.7.patch b/community/osmo/osmo-0.2.10-libnotify-0.7.patch new file mode 100644 index 000000000..d626ba2f1 --- /dev/null +++ b/community/osmo/osmo-0.2.10-libnotify-0.7.patch @@ -0,0 +1,48 @@ +http://pkgs.fedoraproject.org/gitweb/?p=osmo.git;a=blob_plain;f=osmo-0.2.10-libnotify-0.7.0.patch;hb=HEAD + +--- src/check_events.c ++++ src/check_events.c +@@ -454,9 +454,9 @@ + a->date = 0; + + if (textdesc != NULL) +- a->notify = notify_notification_new (item->summary, textdesc, GTK_STOCK_DIALOG_WARNING, NULL); ++ a->notify = notify_notification_new (item->summary, textdesc, GTK_STOCK_DIALOG_WARNING); + else +- a->notify = notify_notification_new (item->summary, text, GTK_STOCK_DIALOG_WARNING, NULL); ++ a->notify = notify_notification_new (item->summary, text, GTK_STOCK_DIALOG_WARNING); + + g_free (textdesc); + g_free (text); +@@ -483,9 +483,6 @@ + #endif /* HAVE_LIBNOTIFY */ + + if (gtk_status_icon_get_visible (appGUI->osmo_trayicon)) { +-#ifdef HAVE_LIBNOTIFY +- notify_notification_attach_to_status_icon (a->notify, appGUI->osmo_trayicon); +-#endif /* HAVE_LIBNOTIFY */ + gtk_status_icon_set_from_stock (appGUI->osmo_trayicon, OSMO_STOCK_SYSTRAY_TASK); + + if (config.blink_on_events) { +@@ -532,9 +529,9 @@ + a->time = -1; + a->date = 0; + if (textdesc != NULL) +- a->notify = notify_notification_new (_("Alarm warning!"), textdesc, GTK_STOCK_DIALOG_INFO, NULL); ++ a->notify = notify_notification_new (_("Alarm warning!"), textdesc, GTK_STOCK_DIALOG_INFO); + else +- a->notify = notify_notification_new (_("Alarm warning!"), text, GTK_STOCK_DIALOG_INFO, NULL); ++ a->notify = notify_notification_new (_("Alarm warning!"), text, GTK_STOCK_DIALOG_INFO); + + notify_notification_set_timeout (a->notify, NOTIFY_EXPIRES_NEVER); + notify_notification_set_urgency (a->notify, NOTIFY_URGENCY_NORMAL); +@@ -545,9 +542,6 @@ + #endif /* HAVE_LIBNOTIFY */ + + if (gtk_status_icon_get_visible (appGUI->osmo_trayicon)) { +-#ifdef HAVE_LIBNOTIFY +- notify_notification_attach_to_status_icon (a->notify, appGUI->osmo_trayicon); +-#endif /* HAVE_LIBNOTIFY */ + gtk_status_icon_set_from_stock (appGUI->osmo_trayicon, OSMO_STOCK_SYSTRAY_TASK); + + if (config.blink_on_events) { diff --git a/community/osmo/osmo.install b/community/osmo/osmo.install new file mode 100644 index 000000000..66b9463d4 --- /dev/null +++ b/community/osmo/osmo.install @@ -0,0 +1,12 @@ +post_install() { + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + -- cgit v1.2.3-54-g00ecf