PKGBUILD 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Maintainer: bill-auger <bill-auger@programmer.net>
  2. # Maintainer (aur): Simon Hanna <simon dot hanna AT serve-me DOT info>
  3. pkgname=('python-mailman-client' 'python2-mailman-client')
  4. pkgver=3.2.0
  5. pkgrel=1
  6. pkgdesc="Library that provides official Python bindings for the GNU Mailman 3 REST API"
  7. arch=(any)
  8. url=https://gitlab.com/mailman/mailmanclient
  9. license=('LGPL')
  10. options=(!emptydirs)
  11. makedepends=('python-setuptools' 'python2-setuptools')
  12. _upstream_name='mailmanclient'
  13. _release="${_upstream_name}-${pkgver}"
  14. source=(https://gitlab.com/mailman/${_upstream_name}/-/archive/${pkgver}/${_release}.tar.gz)
  15. sha256sums=('12fdfd96ec46a3c38bf1227787f97d9547dec3d8501a26177c98b1a67a5e9999')
  16. package_python-mailmanclient()
  17. {
  18. depends=('python' 'python-six' 'python-httplib2')
  19. cd "$srcdir/${_release}"
  20. python setup.py install --root="$pkgdir/" --optimize=1
  21. }
  22. package_python2-mailmanclient()
  23. {
  24. depends=('python2' 'python2-six' 'python2-httplib2')
  25. cd "$srcdir/${_release}"
  26. python2 setup.py install --root="$pkgdir/" --optimize=1
  27. }