blob: 8e82a938a22f60087ca59cb758f6cbc076849eb2 (
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
|
# Contributor: Mark Foxwell <fastfret79@archlinux.org.uk>
# Contributor: Nicolas Pouillard [https://nicolaspouillard.fr]
# Contributor: seschwar -- contact via Arch Linux forum or AUR
# Maintainer: Ian Denhardt <ian@zenhack.net>
pkgname=alot
pkgver=0.8
pkgrel=1
pkgdesc="terminal-based MUA for the notmuch mail system"
arch=(any)
url="https://github.com/pazz/alot"
license=(GPL)
depends=(notmuch
python-gpgme
python-magic
python-configobj
python-urwid
python-urwidtrees
python-twisted)
makedepends=(python-sphinx)
options=(!emptydirs)
source=($pkgname-$pkgver.tar.gz::https://github.com/pazz/$pkgname/archive/$pkgver.tar.gz)
build() {
cd "$srcdir/$pkgname-$pkgver"
# The archlinux package python-magic's egg calls itself "file-magic",
# as opposed to the python-magic on pypi. The result is that the alot
# executable can't find the module, so we patch setup.py to fix the
# dependency:
sed -i -e 's/python-magic/file-magic/' setup.py
python setup.py build
# The makefile is not actually concurrency-safe; the different calls to
# sphinx will trample on each other if we try to parallelize the build.
# So we pass --jobs=1.
make --jobs=1 -C docs man html
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py install --optimize=1 --root="$pkgdir"
install -Dm644 extra/completion/alot-completion.zsh \
"$pkgdir/usr/share/zsh/functions/_alot"
install -dm755 "$pkgdir/usr/share/alot/themes/examples"
install -Dm644 extra/themes/{mutt,solarized_light,solarized_dark,sup,tomorrow} \
"${pkgdir}/usr/share/alot/themes/examples"
install -dm755 "$pkgdir/usr/share/doc/$pkgname"
cp -a docs/build/html/* "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 docs/build/man/alot.1 "$pkgdir/usr/share/man/man1/alot.1"
install -Dm644 extra/alot.desktop "$pkgdir/usr/share/applications/alot.desktop"
}
sha256sums=('4ae269342f1ca61b88e550b763c53b859b8dff17645e5fe697bc2d1a7a173bb8')
|