[arch-commits] Commit in (4 files)
David Runge
dvzrv at archlinux.org
Mon Jan 13 10:02:52 UTC 2020
Date: Monday, January 13, 2020 @ 10:02:52
Author: dvzrv
Revision: 552303
Adding mailman3-hyperkitty, a plugin to mailman3 to enable forwarding to the hyperkitty mail archiver.
Added:
mailman3-hyperkitty/
mailman3-hyperkitty/repos/
mailman3-hyperkitty/trunk/
mailman3-hyperkitty/trunk/PKGBUILD
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Added: mailman3-hyperkitty/trunk/PKGBUILD
===================================================================
--- mailman3-hyperkitty/trunk/PKGBUILD (rev 0)
+++ mailman3-hyperkitty/trunk/PKGBUILD 2020-01-13 10:02:52 UTC (rev 552303)
@@ -0,0 +1,60 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=mailman-hyperkitty
+pkgname=mailman3-hyperkitty
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Mailman plugin to archive emails with HyperKitty"
+arch=('any')
+url="https://gitlab.com/mailman/mailman-hyperkitty"
+license=('GPL3')
+groups=()
+depends=('mailman3' 'python-requests' 'python-zope-interface')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-nose2')
+optdepends=()
+provides=()
+conflicts=()
+replaces=('python-mailman-hyperkitty-plugin')
+backup=()
+options=()
+install=
+changelog=
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+ "https://gitlab.com/mailman/mailman-hyperkitty/raw/84e05811fb71aa105fd85fd14399bff813ed744d/mailman_hyperkitty/tests/test_archiver.py"
+ "${pkgname}.tmpfiles")
+noextract=()
+sha512sums=('d1325b5f88b5f46fb9d772d70a68a6fb1202e195356a0079df414074113d8efcaf3e07dd06dc8e7b1433d5da014fbe2a5344d787288d959c7ce192a34102e3dd'
+ '0b90900e4060fc654ea1e69d2be52f2357d62284fa0d6f470f5663b5bbe9ed5c1b4fa4606ae8a8622e9a31c95d457646390d1ba8094fa8474b85136d3c39c398'
+ 'bc97105a6208d951cbb884a18fea9f1aeb94cb1dab5966ef707c4af526d6bcf869c6c75321fa834f66ca20d315f73a071bb62aba9353c320d7ba84ba935cce6b')
+validpgpkeys=()
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+ # test_archiver.py is broken with python >= 3.7:
+ # https://gitlab.com/mailman/mailman-hyperkitty/issues/17
+ cp -v ../test_archiver.py mailman_hyperkitty/tests/
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ nose2 -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 640 "${_name}.cfg" -t "${pkgdir}/etc/"
+ install -vDm 644 "../${pkgname}.tmpfiles" -t "${pkgdir}/usr/lib/tmpfiles.d/"
+}
More information about the arch-commits
mailing list