PKGBUILD 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Maintainer: bill-auger <bill-auger@programmer.net>
  2. # Maintainer (AUR): Simon Hanna <simon dot hanna AT serve-me DOT info>
  3. pkgname=('mailman-core')
  4. pkgver=3.2.0
  5. pkgrel=1
  6. pkgdesc="A mailing list management system"
  7. arch=(any)
  8. conflicts=('mailman')
  9. url=https://gitlab.com/mailman/mailman
  10. license=('LGPL')
  11. options=(!emptydirs)
  12. makedepends=('python-setuptools')
  13. depends=('python-zope-interface' 'python-zope-event' 'python-zope-configuration'
  14. 'python-zope-component' 'python-passlib' 'python-click' 'python-flufl-lock'
  15. 'python-flufl-i18n' 'python-flufl-bounce' 'python-falcon' 'python-alembic'
  16. 'python-lazr-config' 'python-lazr-smtptest' 'python-aiosmtpd' 'python-atpublic'
  17. 'python-dnspython' 'python-requests' 'postfix')
  18. optdepends=('python-mailman-hyperkitty-plugin: Plugin to send emails to the Hyperkitty archiver')
  19. install=${pkgname}.install
  20. backup=('var/lib/mailman/var/etc/mailman.cfg')
  21. _upstream_name='mailman'
  22. _release="${_upstream_name}-${pkgver}"
  23. source=(https://gitlab.com/mailman/${_upstream_name}/-/archive/${pkgver}/${_release}.tar.gz
  24. 'mailman.sysusers'
  25. 'mailman.service'
  26. 'mailman.cfg')
  27. sha256sums=('17b9765b75e13b933df27aff01d634bd2ab6574bd4ee3b248b4f9ee9ed8dffc4'
  28. 'a99bf88267184fee0568856ac09bb682224ee67029cfc20f603a43fe5f053dad'
  29. '81048cb6a27490fb36881b2eb88567b2ea2271b481dd0254fe9a398e6ca9beaf'
  30. 'f48dac59786be58c6a8b5fe2a12f4f356872d87600be64506f22066508847f3a')
  31. package()
  32. {
  33. cd "$srcdir/${_release}"
  34. # install systemd files
  35. install -Dm 644 "${srcdir}/mailman.service" "${pkgdir}/usr/lib/systemd/system/mailman.service"
  36. install -Dm 644 "${srcdir}/mailman.sysusers" "${pkgdir}/usr/lib/sysusers.d/mailman.conf"
  37. # copy configuration file and create symlink in /etc
  38. install -dm 770 "${pkgdir}/var/lib/mailman"
  39. install -Dm 644 "${srcdir}/mailman.cfg" "${pkgdir}/var/lib/mailman/var/etc/mailman.cfg"
  40. python setup.py install --root="${pkgdir}/" --optimize=1
  41. }