[arch-commits] Commit in mailman3-hyperkitty/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Thu Oct 21 15:56:00 UTC 2021
Date: Thursday, October 21, 2021 @ 15:56:00
Author: dvzrv
Revision: 1031886
upgpkg: mailman3-hyperkitty 1.2.0-1: Upgrade to 1.2.0.
Use detached signature for tarball verification.
Remove use of custom test file (changes are now included).
Remove the requirement on setuptools during runtime.
Simplify installation in package() to adhere to python package guidelines.
Modified:
mailman3-hyperkitty/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-21 15:55:49 UTC (rev 1031885)
+++ PKGBUILD 2021-10-21 15:56:00 UTC (rev 1031886)
@@ -2,8 +2,8 @@
_name=mailman-hyperkitty
pkgname=mailman3-hyperkitty
-pkgver=1.1.0
-pkgrel=5
+pkgver=1.2.0
+pkgrel=1
pkgdesc="Mailman plugin to archive emails with HyperKitty"
arch=('any')
url="https://gitlab.com/mailman/mailman-hyperkitty"
@@ -13,22 +13,24 @@
checkdepends=('python-mock' 'python-nose2')
replaces=('python-mailman-hyperkitty-plugin')
backup=('etc/mailman-hyperkitty.cfg')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
- "https://gitlab.com/mailman/mailman-hyperkitty/raw/84e05811fb71aa105fd85fd14399bff813ed744d/mailman_hyperkitty/tests/test_archiver.py"
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc}
"${pkgname}.tmpfiles")
-sha512sums=('d1325b5f88b5f46fb9d772d70a68a6fb1202e195356a0079df414074113d8efcaf3e07dd06dc8e7b1433d5da014fbe2a5344d787288d959c7ce192a34102e3dd'
- '0b90900e4060fc654ea1e69d2be52f2357d62284fa0d6f470f5663b5bbe9ed5c1b4fa4606ae8a8622e9a31c95d457646390d1ba8094fa8474b85136d3c39c398'
+sha512sums=('1704cbde75f004ba814508b926aae9ed2c7ec87934849ff00db4559e3b27f3f378f28fa60da44778e5018dff147d72ae4378dd7b2771263e8caa37cbb5c4be4f'
+ 'SKIP'
'bc97105a6208d951cbb884a18fea9f1aeb94cb1dab5966ef707c4af526d6bcf869c6c75321fa834f66ca20d315f73a071bb62aba9353c320d7ba84ba935cce6b')
-b2sums=('62dba12861ff43f59d521675e1805a8cb3dfc572fda2aea2aba1134bcdc71ee8f400d4550595a04a38ecce08978ced5c1e0da7be52b6de7e7f5654b392185f3d'
- 'f889918bd4991759a6beba8fbccd301b5aeced10e86c7a4dcf60953484723cb3fd0f4e98a229623923a3bda7870ac2c822c040a1b17ab3781ab4dda2e8af8f72'
+b2sums=('5c0774ccff45eaa71648cd6e9969fb688498bc3d8f8b41efef1e6c5d83b6c36fca8ae729d248c656a47aa789c260e4f0c486e54401da8b0ac806568a723a959d'
+ 'SKIP'
'973b3ef36a3707fdefb36a94a7b5d4a2556f1dfd0d1c70fc648b90226203d33e488d8b79526b837a99ab0acbd4562894b8b62fe84021485180e03f9a874e66bf')
+# enquired upstream about establishing a chain of trust for signed release artifacts:
+# https://gitlab.com/mailman/mailman-hyperkitty/-/issues/22
+validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj <raj.abhilash1 at gmail.com>
prepare() {
mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
- # test_archiver.py is broken with python >= 3.7:
- # https://gitlab.com/mailman/mailman-hyperkitty/issues/17
- cp -v ../test_archiver.py mailman_hyperkitty/tests/
+ # remove runtime requirement on setuptools:
+ # https://gitlab.com/mailman/mailman-hyperkitty/-/issues/26
+ sed -e "/'setuptools'/d" -i setup.py
}
build() {
@@ -44,10 +46,7 @@
package() {
cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
+ python setup.py install --optimize=1 --root="${pkgdir}"
install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 640 "${_name}.cfg" -t "${pkgdir}/etc/"
install -vDm 644 "../${pkgname}.tmpfiles" \
More information about the arch-commits
mailing list