# Maintainer: Gaute Hope _pkgname=astroid pkgname=$_pkgname-git pkgver=v0.13.r24.g20b9171 pkgrel=1 epoch= pkgdesc="a graphical threads-with-tags style, lightweight and fast, email client for notmuch, inspired by sup and others" arch=('x86_64' 'i686') url="https://github.com/astroidmail/astroid" license=('GPL') groups=() depends=('notmuch' 'boost' 'boost-libs' 'gmime' 'gtkmm3' 'webkit2gtk' 'libsass' 'libpeas' 'gobject-introspection' 'protobuf') makedepends=('cmake' 'ninja' 'git' 'pkg-config' 'python-gobject' 'cmark') checkdepends=('notmuch-runtime') optdepends=('gvim: default editor' 'emacs: can be used as editor' 'vte3: for drop-down terminal' 'cmark: for markdown to html composition') provides=('astroid') conflicts=() replaces=() backup=() options=() install=$_pkgname.install changelog= source=(astroid::git+https://github.com/astroidmail/astroid.git astroid.1.gz) noextract=() md5sums=('SKIP' '1cae3fa289d3061dd7d1ac2aa1f9c643') build() { cd "$srcdir/astroid" mkdir -p build cd build # We ship the manpage to avoid an AUR dependency cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DDISABLE_DOCS=ON ninja } check() { cd "$srcdir/astroid" cd build ctest --output-on-failure } package() { cd "$srcdir/astroid" cd build DESTDIR="$pkgdir" ninja install # install manpage mkdir -p "$pkgdir/usr/share/man/man1" cp "$srcdir/astroid.1.gz" "$pkgdir/usr/share/man/man1/" } pkgver() { cd "astroid" git describe --long --tags --always | sed -r 's/([^-]*-g)/r\1/;s/-/./g' }