summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5892728c1b9662eea3e204248d4c052722b9143 (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
# Maintainer: emersion <contact emersion fr>
# Contributor: Techlive Zheng <techlivezheng@gmail.com>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=geary-git
pkgver=r3535.d619d99d
pkgrel=1
pkgdesc="A lightweight email client for the GNOME desktop"
arch=(i686 x86_64)
url="https://wiki.gnome.org/Apps/Geary"
license=('GPL3')
depends=('cairo' 'enchant' 'gcr' 'gdk-pixbuf2' 'glib2' 'glibc' 'gmime'
         'gnome-keyring' 'gtk3' 'iso-codes' 'libcanberra' 'libgee' 'libnotify'
         'libsecret' 'libsoup' 'libxml2' 'pango' 'sqlite' 'webkit2gtk')
makedepends=('cmake' 'gnome-doc-utils' 'gobject-introspection' 'intltool'
             'vala')
provides=('geary')
conflicts=('geary')
source=('git://git.gnome.org/geary'
        'geary-enchant2.patch')
sha256sums=('SKIP'
            '062d9911e8790f59387e65b62b4a49d0d1769e1091ec2e2816b9c8302f6fb95d')

pkgver() {
	cd "$srcdir/geary"
	printf "r%s.%s" "$(git rev-list --count master)" "$(git rev-parse --short master)"
}

prepare() {
  cd "$srcdir/geary"

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

  patch -Np1 -i ../geary-enchant2.patch
}

build() {
	cd "$srcdir/geary"

	cd build

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

package() {
	cd "$srcdir/geary"
	cd build
	make DESTDIR="${pkgdir}" install
}