summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26d512e11d5c03d08e2819278d80ee648a51a4c3 (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
83
84
85
# Contributor: Mantas Mikul─Śnas <grawity@gmail.com>
# $Id: PKGBUILD 146720 2012-01-16 19:50:57Z dreisner $
# Contributor: Roman Kyrylych <roman@archlinux.org>

pkgname=mail-notification
pkgver=5.4.r69.g9ae8768
pkgrel=5
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' 'gnome-keyring' 'hicolor-icon-theme' 'libgnome' 'libgnomeui' 'libnotify' 'notification-daemon')
makedepends=('evolution' 'gnome-doc-utils' 'gob2' 'gtk2' 'intltool')
options=(!emptydirs)
install=mail-notification.install
source=(git+https://github.com/epienbroek/mail-notification.git
        http://pkgs.fedoraproject.org/cgit/rpms/mail-notification.git/plain/mail-notification-jb-gcc-format.patch
        http://pkgs.fedoraproject.org/cgit/rpms/mail-notification.git/plain/mail-notification-evo3_11_2.patch
        http://pkgs.fedoraproject.org/cgit/rpms/mail-notification.git/plain/mail-notification-dont-link-against-bsd-compat.patch
        http://pkgs.fedoraproject.org/cgit/rpms/mail-notification.git/plain/mail-notification-eds3_23_2.patch
        http://pkgs.fedoraproject.org/cgit/rpms/mail-notification.git/plain/mail-notification-gstreamer1.patch
        mail-notification.desktop)
sha256sums=('SKIP'
            'a7646259ca72b58165e4e1c8cf12b197e32807459c4291867479ef3520d39732'
            '14a3fdb850bfed7d5940779240245c716c1afc7e847e7f8bc4422d8746c6d896'
            '2340c6001ad9dfd071f80cf0cd9b45d3fa7efada6880a530b16a3b4d36a27444'
            'dfb9980292524a33f60c80a5abbeac8e6dad0888564105d221e3effee91fd791'
            'bc1ccc9aba228a7446732e078775ca6972a549ee77a70d7bc89c464830ab178b'
            '6a1a683da2a83e596999b261d3830a10678b46d16317c5ac3615ab29fffe6a38')

pkgver() {
  cd "$pkgname"

  git tag -f v5.4 7a2c97e1f48cfb8cd6e21a1d619fd589dfa19ef0
  git describe --tags | sed "s/^v//; s/-/.r/; s/-/./"
}

prepare() {
  cd "$pkgname"

  patch -Np1 < "$srcdir/mail-notification-jb-gcc-format.patch"
  patch -Np1 < "$srcdir/mail-notification-evo3_11_2.patch"
  patch -Np0 < "$srcdir/mail-notification-dont-link-against-bsd-compat.patch"
  patch -Np1 < "$srcdir/mail-notification-eds3_23_2.patch"
  patch -Np1 < "$srcdir/mail-notification-gstreamer1.patch"

  cp -p /usr/share/libtool/build-aux/config.{guess,sub} jbsrc/tools/
}

build() {
  cd "$pkgname"

  ./jb configure \
      cflags="$CFLAGS"                      \
      cppflags="$CXXFLAGS"                  \
      ldflags="$LDFLAGS"                    \
      destdir="$pkgdir"                     \
      prefix=/usr                           \
      sysconfdir=/etc                       \
      localstatedir=/var                    \
      gconf-schemas-dir=/etc/gconf/schemas  \
      install-gconf-schemas=no              \
      update-gtk-icon-cache=no              \
      ;

  ./jb build
}

package() {
  cd "$pkgname"

  export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1

  ./jb install

  install -d -m755 "$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

  install -D -m644 "$srcdir"/mail-notification.desktop "$pkgdir"/usr/share/applications/mail-notification.desktop
}

# vim: ts=2:sw=2:et