summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4bd5aea5bfce96e208350d1c19b8c2637dcf89d (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: Riley Trautman <asonix@tamu.edu>

_pkgname=pantheon-mail
pkgname=$_pkgname-bzr
pkgver=r1978
pkgrel=1
pkgdesc='The Pantheon mail client'
arch=('i686' 'x86_64')
url='https://launchpad.net/pantheon-mail'
license=('LGPL2.1')
groups=('pantheon-unstable')
depends=('desktop-file-utils' 'granite-bzr' 'gtksourceview3' 'libpeas'
  'zeitgeist')
makedepends=('bzr' 'cmake' 'gobject-introspection' 'vala' 'vte3' 'webkitgtk')
optdepends=('webkitgtk: Browser Preview extension')
provides=("$_pkgname")
conflicts=("$_pkgname")
install="$_pkgname.install"
source=('pantheon-mail::bzr+lp:pantheon-mail')
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname

  echo "r$(bzr revno)"
}

prepare() {
  cd $_pkgname

  sed -i 's/gtkspell-3.0/gtkspell3-3.0/' CMakeLists.txt
}

build() {
  cd $_pkgname

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

  mkdir build && cd build

  cmake .. \
    -DCMAKE_BUILD_TYPE='Release' \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
    -DSETTINGS_COMPILE='OFF'
  make
}

package() {
  cd $_pkgname/build

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: