[arch-commits] Commit in gpgme/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Sat May 23 08:37:10 UTC 2020


    Date: Saturday, May 23, 2020 @ 08:37:10
  Author: allan
Revision: 387442

reproducibilty attempt 2

Modified:
  gpgme/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-23 06:52:59 UTC (rev 387441)
+++ PKGBUILD	2020-05-23 08:37:10 UTC (rev 387442)
@@ -5,7 +5,7 @@
 pkgbase=gpgme
 pkgname=(gpgme qgpgme python-gpgme)
 pkgver=1.13.1
-pkgrel=6
+pkgrel=7
 _python_ver=3.8
 pkgdesc="A C wrapper library for GnuPG"
 arch=('x86_64')
@@ -17,13 +17,6 @@
             'SKIP')
 validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch
 
-prepare() {
-  cd ${pkgbase}-${pkgver}
-
-  # touch python files for reproducibility
-  find lang/python -name *.py
-}
-
 build() {
   cd ${pkgbase}-${pkgver}
 
@@ -38,6 +31,9 @@
   # ensure reproducibility of .pyc files
   touch -d @$SOURCE_DATE_EPOCH lang/python/version.py
   touch -d @$SOURCE_DATE_EPOCH lang/python/python${_python_ver}-gpg/lib.linux-x86_64-${_python_ver}/gpg/gpgme.py
+  
+  # .pyc files will be created if check() is used - generate them here
+  
 }
 
 check() {
@@ -47,6 +43,9 @@
   sed -i 's#"t-keylist-secret",##' tests/json/t-json.c
 
   make check
+
+  # ensure reproducibilty whether test-suite is run or not
+  find . -name *.pyc -exec rm {} +
 }
 
 package_gpgme() {



More information about the arch-commits mailing list