[arch-commits] Commit in alot/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Nov 10 07:10:39 UTC 2019
Date: Sunday, November 10, 2019 @ 07:10:38
Author: felixonmars
Revision: 524931
archrelease: copy trunk to community-staging-any
Added:
alot/repos/community-staging-any/
alot/repos/community-staging-any/PKGBUILD
(from rev 524930, alot/trunk/PKGBUILD)
----------+
PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
Copied: alot/repos/community-staging-any/PKGBUILD (from rev 524930, alot/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-10 07:10:38 UTC (rev 524931)
@@ -0,0 +1,61 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Mark Foxwell <fastfret79 at archlinux.org.uk>
+# Contributor: Nicolas Pouillard [https://nicolaspouillard.fr]
+# Contributor: seschwar -- contact via Arch Linux forum or AUR
+# Contributor: Ian Denhardt <ian at zenhack.net>
+
+pkgname=alot
+pkgver=0.8.1
+pkgrel=2
+pkgdesc='Terminal-based MUA for the notmuch mail system'
+arch=(any)
+url=https://github.com/pazz/alot
+license=('GPL3')
+depends=('desktop-file-utils' 'notmuch' 'python-configobj' 'python-gpgme'
+ 'python-magic' 'python-setuptools' 'python-twisted' 'python-urwid'
+ 'python-urwidtrees')
+makedepends=('python-sphinx' 'git')
+checkdepends=('python-mock' 'procps-ng')
+source=("$url/archive/$pkgver/alot-$pkgver.tar.gz"
+ "alot-$pkgver.tar.gz.asc::$url/releases/download/$pkgver/$pkgver.tar.gz.asc"
+ gpg-test-fix.patch::https://github.com/pazz/alot/commit/3446dc44f87d34205b70f44d6ffec9f90b53d77f.patch)
+sha512sums=('bca4a01636594f0e71c6ea260d74cf26e74dfd7aca1ea7801714b4aaf9602ae7737769e77e3af0363ed2701df1494e0f87ce85b58c47a6380ad1a9098f8501d4'
+ 'SKIP'
+ 'c17af3dc44256b187eb497c1762a2afeb841d4bdd4c7b125ec9ff4293c81d913dbae01fe10534ed8d11f421235e1bfb46872354e49ba8d7942dfc5599f16cb96')
+validpgpkeys=('B7838D65FEE80DED1DCA494D94340367D7D6C5AA') # Patrick Totzke
+
+# The Arch Linux package python-magic's egg calls itself "file-magic",
+# as opposed to the python-magic on PyPI.
+prepare() {
+ cd alot-$pkgver
+ sed -i 's/python-magic/file-magic/' setup.py
+
+ # https://github.com/pazz/alot/pull/1415
+ git apply ../gpg-test-fix.patch
+ # https://github.com/pazz/alot/pull/1451
+ sed -i '/def doClassCleanups/a\ cls.tearDown_exceptions = []' tests/utilities.py
+}
+
+build() {
+ cd alot-$pkgver
+ python setup.py build
+ make -C docs man
+}
+
+check() {
+ cd alot-$pkgver
+ python setup.py test
+}
+
+package() {
+ cd alot-$pkgver
+ python setup.py install --optimize=1 --root="$pkgdir" --skip-build
+ install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/alot.1
+ install -Dm644 -t "$pkgdir"/usr/share/applications extra/alot*.desktop
+ install -Dm644 extra/completion/alot-completion.zsh \
+ "$pkgdir"/usr/share/zsh/functions/_alot
+ install -Dm644 -t "$pkgdir"/usr/share/alot/themes \
+ extra/themes/{mutt,solarized_light,solarized_dark,sup,tomorrow}
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list