mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 00:27:17 +02:00
updated packaging file for upcoming 1.0 release
This commit is contained in:
19
PKGBUILD
19
PKGBUILD
@@ -2,9 +2,9 @@
|
||||
# Contributor: rasmus <rasmus . pank at gmail . com>
|
||||
|
||||
pkgname=mailnag
|
||||
pkgver=0.5.2
|
||||
pkgrel=4
|
||||
pkgdesc="A mail notification daemon for GNOME 3."
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc="An extendable mail notification daemon."
|
||||
arch=('any')
|
||||
url="https://github.com/pulb/mailnag"
|
||||
license=('GPL')
|
||||
@@ -12,20 +12,11 @@ depends=('python2' 'python2-gobject' 'python2-httplib2'
|
||||
'libgnome-keyring' 'gnome-keyring' 'python2-xdg'
|
||||
'python2-dbus' 'libnotify' 'gstreamer0.10-base-plugins')
|
||||
makedepends=('gettext')
|
||||
source=('https://launchpad.net/mailnag/trunk/mailnag-master/+download/mailnag-0.5.2.tar.gz'
|
||||
libnotify-and-gsettings.patch)
|
||||
md5sums=('10bb4d1618dce791f7ae619f81580a68'
|
||||
'406aaf038ed4e9b3790e1ec1a21a8f4d')
|
||||
source=('https://launchpad.net/mailnag/trunk/mailnag-master/+download/mailnag-1.0.0.tar.gz')
|
||||
md5sums=('10bb4d1618dce791f7ae619f81580a68')
|
||||
install='mailnag.install'
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"
|
||||
# apply patch for libnotify and GNOME 3.10 API changes
|
||||
patch -p0 < ${startdir}/libnotify-and-gsettings.patch
|
||||
# python2 fix
|
||||
sed -i 's/python/python2/g' mailnag
|
||||
sed -i 's/python/python2/g' mailnag_config
|
||||
find -name "*.py" -exec sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' {} \;
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
--- Mailnag/daemon/mailchecker.py 2013-11-17 17:51:55.560331777 +0100
|
||||
+++ Mailnag/daemon/mailchecker.py.patched 2013-11-17 17:51:44.853665248 +0100
|
||||
@@ -22,7 +22,7 @@
|
||||
# MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
-from gi.repository import Notify, Gio
|
||||
+from gi.repository import Notify
|
||||
import threading
|
||||
import sys
|
||||
import subprocess
|
||||
@@ -45,7 +45,6 @@
|
||||
self._reminder = Reminder()
|
||||
self._pid = Pid()
|
||||
self._cfg = cfg
|
||||
- self._gsettings = Gio.Settings.new('org.gnome.shell')
|
||||
# dict that tracks all notifications that need to be closed
|
||||
self._notifications = {}
|
||||
|
||||
@@ -100,8 +99,7 @@
|
||||
|
||||
# play sound if it is enabled in mailnags settings and
|
||||
# gnome-shell notifications aren't disabled
|
||||
- if (self._cfg.get('general', 'playsound') == '1') and \
|
||||
- (self._gsettings.get_int('saved-session-presence') != 2):
|
||||
+ if (self._cfg.get('general', 'playsound') == '1'):
|
||||
gstplay(get_data_file(self._cfg.get('general', 'soundfile')))
|
||||
|
||||
self._reminder.save(self._mail_list)
|
||||
@@ -147,7 +145,7 @@
|
||||
for mail in new_mails:
|
||||
n = self._get_notification(mail.sender, mail.subject, "mail-unread")
|
||||
notification_id = str(id(n))
|
||||
- n.add_action("mark-as-read", _("Mark as read"), self._notification_action_handler, (mail, notification_id), None)
|
||||
+ n.add_action("mark-as-read", _("Mark as read"), self._notification_action_handler, (mail, notification_id))
|
||||
n.show()
|
||||
self._notifications[notification_id] = n
|
||||
|
||||
@@ -155,7 +153,7 @@
|
||||
def _get_notification(self, summary, body, icon):
|
||||
n = Notify.Notification.new(summary, body, icon)
|
||||
n.set_category("email")
|
||||
- n.add_action("default", "default", self._notification_action_handler, None, None)
|
||||
+ n.add_action("default", "default", self._notification_action_handler, None)
|
||||
|
||||
return n
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
post_install() {
|
||||
echo 'To configure Mailnag run mailnag_config.'
|
||||
echo 'To configure Mailnag run mailnag-config.'
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
echo 'IMPORTANT NOTE: As of version 1.0 the format of the config file has changed.'
|
||||
echo 'It is recommended to move or delete ~/.config/mailnag/mailnag.cfg'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user