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

pkgname=('python-mailman-hyperkitty-plugin')
pkgver=1.1.0
pkgrel=1
pkgdesc="Hyperkitty archive plugin for mailman"
arch=(any)
url=https://gitlab.com/mailman/mailman-hyperkitty
license=('GPL')
options=(!emptydirs)

makedepends=('python-setuptools')
depends=('mailman-core' 'python-setuptools' 'python-requests')

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


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

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