# Maintainer: bill-auger <bill-auger@programmer.net>
# Maintainer (aur): Simon Hanna <simon dot hanna AT serve-me DOT info>

pkgname=('python2-django-postorius')
pkgver=1.2.2
pkgrel=1
pkgdesc="A Django app that provides a web user interface to access GNU Mailman"
arch=(any)
url=https://gitlab.com/mailman/postorius
license=('LGPL')
options=(!emptydirs)

makedepends=('python2-setuptools')
depends=('python2' 'python2-django-mailman3')

_upstream_name='postorius'
_release="${_upstream_name}-${pkgver}"
source=(https://gitlab.com/mailman/${_upstream_name}/-/archive/${pkgver}/${_release}.tar.gz)
sha256sums=('4299c883a7e1a5044436a3c57a19bf337bd95b4e1b89fe6c66982843622d464e')


package()
{
  cd "$srcdir/${_release}"

  python2 setup.py install --root="$pkgdir/" --optimize=1
}
