Date: Monday, March 20, 2023 @ 11:21:24
Author: dvzrv
Revision: 471603
archrelease: copy trunk to testing-x86_64
Added:
gpgme/repos/testing-x86_64/PKGBUILD
(from rev 471602, gpgme/trunk/PKGBUILD)
gpgme/repos/testing-x86_64/keys/
Deleted:
gpgme/repos/testing-x86_64/PKGBUILD
gpgme/repos/testing-x86_64/keys/
----------+
PKGBUILD | 168 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 87 insertions(+), 81 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-20 11:20:28 UTC (rev 471602)
+++ PKGBUILD 2023-03-20 11:21:24 UTC (rev 471603)
@@ -1,81 +0,0 @@
-# Maintainer: Tobias Powalowski <[email protected]>
-# Contributor: Roman Kyrylych <[email protected]>
-# Contributor: Sarah Hay <[email protected]>
-
-pkgbase=gpgme
-pkgname=(gpgme qgpgme python-gpgme)
-pkgver=1.19.0
-pkgrel=1
-_python_ver=3.10
-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' 'python-setuptools'
'swig')
-validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA' # Werner Koch (dist
signing 2020)
- 'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka
(GnuPG Release Key)
-source=("https://www.gnupg.org/ftp/gcrypt/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2"{,.sig})
-sha256sums=('cb58494dc415fba9eeb12b826550ad3190dc92e265c5bb2ae1a21c92841cfd38'
- 'SKIP')
-
-build() {
- cd ${pkgbase}-${pkgver}
-
- ./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-cpython-${_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() {
- depends=('libgpg-error' 'gnupg>=2')
- options+=('!emptydirs')
- provides=('libgpgme.so'
- 'libgpgmepp.so')
-
- cd ${pkgbase}-${pkgver}
-
- make DESTDIR="${pkgdir}" install
-
- # split qgpgme
- rm -r "${pkgdir}"/usr/include/{qgpgme,QGpgME}/
- rm -r "${pkgdir}"/usr/lib/{cmake/QGpgme/,libqgpgme.*}
- rm -r "${pkgdir}"/usr/lib/python*
-}
-
-package_qgpgme() {
- pkgdesc="Qt bindings for GPGme"
- depends=('gpgme' 'qt5-base')
-
- cd ${pkgbase}-${pkgver}/lang/qt
-
- make DESTDIR="${pkgdir}" install
-}
-
-package_python-gpgme() {
- pkgdesc="Python bindings for GPGme"
- depends=('gpgme' 'python')
-
- cd ${pkgbase}-${pkgver}/lang/python
- make DESTDIR="${pkgdir}" install
-}
Copied: gpgme/repos/testing-x86_64/PKGBUILD (from rev 471602,
gpgme/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-20 11:21:24 UTC (rev 471603)
@@ -0,0 +1,87 @@
+# Maintainer: Tobias Powalowski <[email protected]>
+# Contributor: Roman Kyrylych <[email protected]>
+# Contributor: Sarah Hay <[email protected]>
+
+pkgbase=gpgme
+pkgname=(gpgme qgpgme python-gpgme)
+pkgver=1.19.0
+pkgrel=2
+pkgdesc='A C wrapper library for GnuPG'
+arch=('x86_64')
+url='https://www.gnupg.org/related_software/gpgme/'
+license=('LGPL')
+makedepends=(
+ 'gnupg'
+ 'libgpg-error'
+ 'python'
+ 'python-build'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-wheel'
+ 'qt5-base'
+ 'swig'
+)
+validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA' # Werner Koch (dist
signing 2020)
+ 'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka
(GnuPG Release Key)
+source=("https://www.gnupg.org/ftp/gcrypt/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2"{,.sig})
+sha256sums=('cb58494dc415fba9eeb12b826550ad3190dc92e265c5bb2ae1a21c92841cfd38'
+ 'SKIP')
+
+build() {
+ cd ${pkgbase}-${pkgver}
+
+ ./configure \
+ --prefix=/usr \
+ --disable-fd-passing \
+ --disable-static \
+ --disable-gpgsm-test
+ make
+
+ (
+ # use a PEP517 workflow to get a reproducible Python package
+ cd lang/python/
+ python -m build --wheel --no-isolation
+ )
+}
+
+check() {
+ cd ${pkgbase}-${pkgver}
+
+ # this test fails with gnupg (FS#66572)
+ sed -i 's#"t-keylist-secret",##' tests/json/t-json.c
+
+ make check
+}
+
+package_gpgme() {
+ depends=('libgpg-error' 'gnupg>=2')
+ options+=('!emptydirs')
+ provides=('libgpgme.so'
+ 'libgpgmepp.so')
+
+ cd ${pkgbase}-${pkgver}
+
+ make DESTDIR="${pkgdir}" install
+
+ # split qgpgme
+ rm -r "${pkgdir}"/usr/include/{qgpgme,QGpgME}/
+ rm -r "${pkgdir}"/usr/lib/{cmake/QGpgme/,libqgpgme.*}
+ rm -r "${pkgdir}"/usr/lib/python*
+}
+
+package_qgpgme() {
+ pkgdesc="Qt bindings for GPGme"
+ depends=('gpgme' 'qt5-base')
+
+ cd ${pkgbase}-${pkgver}/lang/qt
+
+ make DESTDIR="${pkgdir}" install
+}
+
+package_python-gpgme() {
+ pkgdesc="Python bindings for GPGme"
+ depends=('gpgme' 'python')
+
+ cd ${pkgbase}-${pkgver}/lang/python
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}