[arch-commits] Commit in postorius/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Wed Jul 15 21:18:14 UTC 2020
Date: Wednesday, July 15, 2020 @ 21:18:13
Author: dvzrv
Revision: 664011
upgpkg: postorius 1.3.3-2: Rebuilding for reproducibility.
Exporting PYTHONHASHSEED so .pyc files stay reproducible.
Using PYTHONDONTWRITEBYTECODE=1 in check() so that the sources are not altered.
Modified:
postorius/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-15 21:13:21 UTC (rev 664010)
+++ PKGBUILD 2020-07-15 21:18:13 UTC (rev 664011)
@@ -2,7 +2,7 @@
pkgname=postorius
pkgver=1.3.3
-pkgrel=1
+pkgrel=2
pkgdesc="The New Mailman Web UI"
arch=('any')
url="https://gitlab.com/mailman/postorius"
@@ -29,6 +29,12 @@
'97cb4c0530a270db1e608f255b0940fbf1779252da74b7df9865adff809f0e644e88e0cbcfa7d7c858877887bc8ae64dddec88734fbc4abb75b6a270be38d2cf'
'c042f00d0d8dc72dadd19023152e55246c4d7a4b9d53bca3a05e7b8cb38cac5116417440d4ae82350820c7cb0cd414dcce45fa6af9be19296c4ebd0862dba896'
'53713874043e368c71543966e878ff7a49f03088b7ebcff9487935bef2c20a57a561a122dd6b4cbde126c25b935871288dadd7693b831a94b8f27da52afeaa0c')
+b2sums=('0ae5a7b3ace1ad7f64eae53156592d0c76a09e358d08edfe1b506717e87df67c669bfab356c203e28c03006f46461a67b4c7222e0e305100e15511a93e3e6a59'
+ 'SKIP'
+ '1ef6dc98c6751e6d65e49812d08d813879b791a7f13622ea31ecadae6dd1859a918761d7723732ed2e4872b9cae61b84c8dbfec2dd2522de9f0929a1ee1cec24'
+ 'cb5653cde88a3bfee87e5609066c6e4accd96d97c0e225ee721d23356a3c88a17ceb3e849849ff487c77a17070e281c105a1a0298bd0a8508df0c29f155bf45c'
+ '4b80d60c88d46edd0e6e61ad2ff37ba3568c6c56a2abd449f903f7302aeec4a3bc91bbd3ee846731513fa1906df2e3d7d1c52b75a55214051fb96b048f9b4999'
+ 'c4017fe87b8743ae516e360be97efd767d726b043733a6dd880503e796e28f65c9ad5924b0fef53281e4fa73a1a329e818baedbe5dbbc0dc07db2af0cf25f1b7')
validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj <raj.abhilash1 at gmail.com>
prepare() {
@@ -44,18 +50,18 @@
}
check() {
- cd "$pkgname-$pkgver"
- cd example_project
+ cd "$pkgname-$pkgver/example_project"
export PYTHONPATH="../build/lib:${PYTHONPATH}"
+ PYTHONDONTWRITEBYTECODE=1 \
pytest -v ../build/lib/${pkgname}
}
package() {
cd "$pkgname-$pkgver"
+ export PYTHONHASHSEED=0
python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
+ --optimize=1 \
+ --root="${pkgdir}"
# django project
install -vDm 644 example_project/{__init__,manage,settings,urls,wsgi}.py \
-t "${pkgdir}/usr/share/webapps/${pkgname}"
More information about the arch-commits
mailing list