summaryrefslogtreecommitdiffstats
path: root/abs/core/gpgme/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/gpgme/PKGBUILD')
-rw-r--r--abs/core/gpgme/PKGBUILD22
1 files changed, 18 insertions, 4 deletions
diff --git a/abs/core/gpgme/PKGBUILD b/abs/core/gpgme/PKGBUILD
index b1b28c2..57fe28f 100644
--- a/abs/core/gpgme/PKGBUILD
+++ b/abs/core/gpgme/PKGBUILD
@@ -4,33 +4,48 @@
pkgbase=gpgme
pkgname=(gpgme qgpgme python-gpgme)
-pkgver=1.13.1
-pkgrel=5
+pkgver=1.14.0
+pkgrel=1
+_python_ver=3.8
pkgdesc="A C wrapper library for GnuPG"
arch=('x86_64')
url='https://www.gnupg.org/related_software/gpgme/'
license=('LGPL')
makedepends=('libgpg-error' 'gnupg' 'qt5-base' 'python' 'swig')
source=("https://www.gnupg.org/ftp/gcrypt/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2"{,.sig})
-sha256sums=('c4e30b227682374c23cddc7fdb9324a99694d907e79242a25a4deeedb393be46'
+sha256sums=('cef1f710a6b0d28f5b44242713ad373702d1466dcbe512eb4e754d7f35cd4307'
'SKIP')
validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch
build() {
cd ${pkgbase}-${pkgver}
+ export PYTHONHASHSEED=0
./configure \
--prefix=/usr \
--disable-fd-passing \
--disable-static \
--disable-gpgsm-test
make
+
+ # 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() {
cd ${pkgbase}-${pkgver}
+ # this test fails with gnupg (FS#66572)
+ 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() {
@@ -63,6 +78,5 @@ package_python-gpgme() {
depends=('gpgme' 'python')
cd ${pkgbase}-${pkgver}/lang/python
-
make DESTDIR="${pkgdir}" install
}