Date: Monday, January 13, 2020 @ 04:18:32 Author: dvzrv Revision: 552287
Adding python-django-mailman3 as depends for python-django-{hyperkitty,posterius}. Added: python-django-mailman3/ python-django-mailman3/repos/ python-django-mailman3/trunk/ python-django-mailman3/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Added: python-django-mailman3/trunk/PKGBUILD =================================================================== --- python-django-mailman3/trunk/PKGBUILD (rev 0) +++ python-django-mailman3/trunk/PKGBUILD 2020-01-13 04:18:32 UTC (rev 552287) @@ -0,0 +1,42 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +_name=django-mailman3 +pkgname=python-django-mailman3 +pkgver=1.3.2 +pkgrel=1 +pkgdesc="Libraries and templates to Django-based interfaces interacting with Mailman" +arch=('any') +url="https://gitlab.com/mailman/django-mailman3" +license=('GPL3') +depends=('python-django' 'python-django-allauth' 'python-django-gravatar' +'python-mailmanclient' 'python-pytz') +makedepends=('python-setuptools') +checkdepends=('python-coverage' 'python-mock' 'python-pytest') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc}) +sha512sums=('7397c592e59164df58caed89c52c79d979f66dd65d01049abc8e82d09d0556439134f502b597c27ef6f43583347c90302077a8eec3c78b2231fd58d424268269' + 'SKIP') +validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj <raj.abhila...@gmail.com> + +prepare() { + mv -v "${_name}-${pkgver}" "$pkgname-$pkgver" +} + +build() { + cd "$pkgname-$pkgver" + python setup.py build +} + +check() { + cd "$pkgname-$pkgver" + export PYTHONPATH="build:${PYTHONPATH}" + django-admin.py test --settings=django_mailman3.tests.settings_test django_mailman3 +} + +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}" +}