summaryrefslogtreecommitdiff
path: root/extra/mail-notification/PKGBUILD
blob: edb5a8d03717d8e251bd0716b9564bc567ebc7b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# $Id: PKGBUILD 139560 2011-10-03 13:09:05Z jgc $
# Maintainer: Roman Kyrylych <roman@archlinux.org>

pkgname=mail-notification
pkgver=5.4
pkgrel=9
pkgdesc="Tray icon application that informs you if you have new mail"
arch=('i686' 'x86_64')
url="http://www.nongnu.org/mailnotify/"
license=('GPL3' 'FDL')
depends=('gmime' 'libnotify>=0.7.1' 'gnome-keyring' 'hicolor-icon-theme' 'notification-daemon' 'libgnome')
makedepends=('gob2' 'intltool' 'evolution' 'gnome-doc-utils' 'gtk2')
options=('!libtool' '!emptydirs')
install=mail-notification.install
source=(http://savannah.nongnu.org/download/mailnotify-orig/${pkgname}-${pkgver}.tar.bz2
        dont-update-cache.patch
        remove-ubuntu-special-case.patch
        mail-notification-5.4-evolution.patch
        gmime-2.4.patch
        mail-notification-5.4-sasl_encode64.patch
        mail-notification-5.4-evolution-gtkhtml.patch
        mail-notification-5.4-camel_headers.patch
        mail-notification-5.4-icons.patch
        mail-notification-5.4-weak.patch
        mail-notification-5.4-popup-attach.patch
        mail-notification-5.4-kde-trayicon.patch
        mail-notification-5.4-evolution-3-0-support.patch
        mail-notification-5.4-gtk3-support.patch
        mail-notification-5.4-add-fallback-icon.patch)
md5sums=('c8dc33a61251acb5474e56eab6b18f43'
         '6007bc30e789dab0a8282038e0335eb9'
         '9cadd61bbd9c324b2916ec980231e0f2'
         'aa6f80820899f904c25988772f70ade9'
         '447cc20f035b9cf1a391027684ce1297'
         '125513ed059f62469377eb0ab794dbed'
         'c595a3962ab13a65be24a941e28faa9c'
         'f79939f593b2e8659e302df72c2b54b1'
         '244b7ef2aec7656e8df390be87c10e2b'
         '31bde95dfd39449959d8b3316f91429c'
         'cdead6a88d1779f69a5f40dc75d5cb84'
         'c7991b831834724eddc1c6802c3e06a6'
         'b370b1085ebb2814bd5d345a6d2b45ea'
         '1ba948759110787dd57097cff157b75a'
         '09df61b4dc29c676ac81ff9054e840ac')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -Np0 -i "${srcdir}/dont-update-cache.patch"
  patch -Np0 -i "${srcdir}/remove-ubuntu-special-case.patch"
  patch -Np1 -i "${srcdir}/mail-notification-5.4-evolution.patch"
  patch -Np1 -i "${srcdir}/gmime-2.4.patch"
  patch -Np1 -i "${srcdir}/mail-notification-5.4-sasl_encode64.patch"
  patch -Np1 -i "${srcdir}/mail-notification-5.4-evolution-gtkhtml.patch"
  patch -Np1 -i "${srcdir}/mail-notification-5.4-camel_headers.patch"
  patch -Np1 -i "${srcdir}/mail-notification-5.4-icons.patch"
  patch -Np1 -i "${srcdir}/mail-notification-5.4-weak.patch"
  patch -Np1 -i "${srcdir}/mail-notification-5.4-popup-attach.patch"
  patch -Np1 -i "${srcdir}/mail-notification-5.4-kde-trayicon.patch"
  patch -Np0 -i "${srcdir}/mail-notification-5.4-evolution-3-0-support.patch"
  patch -Np0 -i "${srcdir}/mail-notification-5.4-gtk3-support.patch"
  patch -Np0 -i "${srcdir}/mail-notification-5.4-add-fallback-icon.patch"

  gtk-builder-convert ui/mailbox-properties-dialog.glade ui/mailbox-properties-dialog.ui
  gtk-builder-convert ui/properties-dialog.glade ui/properties-dialog.ui

  ./jb configure prefix=/usr sysconfdir=/etc \
      localstatedir=/var destdir="${pkgdir}" \
      gconf-schemas-dir=/etc/gconf/schemas install-gconf-schemas=no \
      cflags="${CFLAGS}" cppflags="${CXXFLAGS}" ldflags="${LDFLAGS}" \
      library-mode=0755
  ./jb build
  GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 ./jb install

  rm -f "${pkgdir}/usr/share/mail-notification/"*.glade
  install -m644 ui/mailbox-properties-dialog.ui "${pkgdir}/usr/share/mail-notification/"
  install -m644 ui/properties-dialog.ui "${pkgdir}/usr/share/mail-notification/"

  install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
  gconf-merge-schema ${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas --domain mail-notification ${pkgdir}/etc/gconf/schemas/*.schemas
  rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
}