2017-01-03 00:20:20 +02:00
|
|
|
# Maintainer: Gaute Hope <eg@gaute.vetsj.com>
|
2019-11-24 19:45:42 +02:00
|
|
|
# Maintainer: Alad Wenter <alad@archlinux.org>
|
|
|
|
pkgname=astroid-git
|
2017-03-02 15:37:49 +02:00
|
|
|
_pkgname=astroid
|
2019-11-24 19:45:42 +02:00
|
|
|
pkgver=v0.15.r13.gb675b42
|
2017-01-03 00:20:20 +02:00
|
|
|
pkgrel=1
|
|
|
|
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')
|
2019-11-24 19:45:42 +02:00
|
|
|
depends=('notmuch' 'boost' 'boost-libs' 'gmime' 'gtkmm3' 'webkit2gtk' 'libsass'
|
|
|
|
'libpeas' 'gobject-introspection' 'protobuf' 'gtk-update-icon-cache')
|
2018-09-30 22:40:32 +03:00
|
|
|
makedepends=('cmake' 'ninja' 'git' 'pkg-config' 'python-gobject' 'cmark' 'ruby-ronn')
|
2017-01-03 00:20:20 +02:00
|
|
|
checkdepends=('notmuch-runtime')
|
|
|
|
optdepends=('gvim: default editor'
|
2017-02-28 14:57:16 +02:00
|
|
|
'emacs: can be used as editor'
|
2018-08-30 12:01:52 +03:00
|
|
|
'vte3: for drop-down terminal'
|
|
|
|
'cmark: for markdown to html composition')
|
2017-01-03 00:20:20 +02:00
|
|
|
provides=('astroid')
|
2019-11-24 19:45:42 +02:00
|
|
|
conflicts=('astroid')
|
|
|
|
source=("git+https://github.com/astroidmail/astroid.git"
|
|
|
|
"test_compose.patch")
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'75188a53e85c7d80f7553d2cc38d5bb3')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$_pkgname"
|
|
|
|
patch -p2 < "$srcdir"/test_compose.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$_pkgname"
|
|
|
|
git describe --long --tags --always | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
|
|
|
|
}
|
2017-01-03 00:20:20 +02:00
|
|
|
|
|
|
|
build() {
|
2019-11-24 19:45:42 +02:00
|
|
|
cd "$_pkgname"
|
2017-11-15 14:43:17 +02:00
|
|
|
mkdir -p build
|
2017-10-07 10:09:34 +03:00
|
|
|
cd build
|
2018-08-30 12:01:52 +03:00
|
|
|
|
|
|
|
# We ship the manpage to avoid an AUR dependency
|
|
|
|
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DDISABLE_DOCS=ON
|
2017-10-07 10:09:34 +03:00
|
|
|
ninja
|
2017-01-03 00:20:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-11-24 19:45:42 +02:00
|
|
|
cd "$_pkgname"
|
2017-10-07 10:09:34 +03:00
|
|
|
cd build
|
2018-02-07 14:31:40 +02:00
|
|
|
ctest --output-on-failure
|
2017-01-03 00:20:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-11-24 19:45:42 +02:00
|
|
|
cd "$_pkgname"
|
2017-10-07 10:09:34 +03:00
|
|
|
cd build
|
|
|
|
DESTDIR="$pkgdir" ninja install
|
2017-01-03 00:20:20 +02:00
|
|
|
}
|
|
|
|
|