summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a7c051689da285c575f9c59c8eb4f00b4ab4429 (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
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Riley Trautman <asonix@tamu.edu>

pkgname=pantheon-mail-bzr
pkgver=r2164
pkgrel=1
pkgdesc='The Pantheon Mail Client'
arch=('i686' 'x86_64')
url='https://launchpad.net/pantheon-mail'
license=('GPL3')
depends=('cairo' 'gcr' 'gdk-pixbuf2' 'glib2' 'glibc' 'gmime' 'gnome-keyring'
         'gtk3' 'libaccounts-glib' 'libcanberra' 'libgee' 'libgsignon-glib'
         'libnotify' 'libsecret' 'libxml2' 'pango' 'sqlite' 'webkitgtk'
         'libgranite.so')
makedepends=('bzr' 'cmake' 'gnome-doc-utils' 'gobject-introspection'
             'granite-bzr' 'intltool' 'vala')
provides=('pantheon-mail')
conflicts=('pantheon-mail')
install='pantheon-mail.install'
source=('bzr+lp:pantheon-mail')
sha256sums=('SKIP')

pkgver() {
  cd pantheon-mail

  echo "r$(bzr revno)"
}

prepare() {
  cd pantheon-mail

  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build
}

build() {
  cd pantheon-mail/build

  cmake .. \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DDESKTOP_UPDATE='FALSE' \
    -DGSETTINGS_COMPILE='FALSE' \
    -DGSETTINGS_COMPILE_IN_PLACE='FALSE'
  make
}

package() {
  cd pantheon-mail/build

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: