summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb4cd5cb888005448b3f5bba72bf93cfe1bdd9bc (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Jack Random, <jack(at)random(dot)to>
# previous: csllbr; Popsch <popsch@gmx.net>
# Thanks to the maintainers and contributors of the mu binary package

pkgname=mu-git
pkgver=1.7.0.r5558
pkgrel=2
epoch=1
pkgdesc="mu and mu4e from git"
arch=('i686' 'x86_64')
url="http://www.djcbsoftware.nl/code/mu"
depends=('xapian-core' 'gmime3')
makedepends=('git' 'meson')
optdepends=('emacs: mu4e support' 'guile: to script in guile')
license=('GPL')
provides=('mu')
conflicts=('mu')
source=('git+https://github.com/djcb/mu.git')
md5sums=('SKIP')

pkgver() {
  cd mu
  printf %s.r%s $(awk '/version:/ {print $2}' meson.build|head -1|tr -d \' | tr -d \,) $(git rev-list --count HEAD)
}

build() {
  cd mu
  meson --prefix=/usr --buildtype=plain build 
  ninja -C build
}

package() {
  cd mu
  DESTDIR="$pkgdir" ninja -C build install
}