# Contributor: William Pitcock # Maintainer: A. Wilcox pkgname=gpgme pkgver=1.16.0 pkgrel=1 pkgdesc="GnuPG Made Easy" url="https://www.gnupg.org/related_software/gpgme/" arch="all" # gpgme-tool: GPL3; lib is mixture of the rest license="(LGPL-3.0+ OR GPL-2.0+) AND LGPL-2.1+ AND MIT AND GPL-3.0+" depends="gnupg" depends_dev="qt5-qtbase-dev" makedepends="$depends_dev doxygen libassuan-dev libgpg-error-dev python3-dev swig cmd:which" subpackages="$pkgname-dev $pkgname-doc gpgmepp qgpgme py3-gpg:_py" source="https://gnupg.org/ftp/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2 0001-core-Fix-use-after-free-issue-in-test.patch 0002-Make-sure-expiration-time-is-interpreted-as-unsigned.patch 0003-python310.patch " build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-languages=cl,cpp,python,qt make } check() { make check } package() { make DESTDIR="$pkgdir" install } qgpgme() { pkgdesc="$pkgdesc (Qt 5 library)" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libqgpgme.so* "$subpkgdir"/usr/lib/ } gpgmepp() { pkgdesc="C++ bindings for GPGME" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgpgmepp.so.* "$subpkgdir"/usr/lib/ } _py() { pkgdesc="$pkgdesc (Python bindings)" depends="$pkgname=$pkgver-r$pkgrel python3" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } sha512sums="69487be69612e9bf0221ff56ae687248bd13635db1b7087130e93c1670e38f3c810bbca17723555c04fe207976c35871bbc3da005179ce099504321cf33636e4 gpgme-1.16.0.tar.bz2 8e455ffa6590ab976ec52e47a8adf28ddc7fe5cfe6a191375bf19ff0ca3b9dd1a5788f2d33ecd4214eaf59cf7668b64f87add305da169775ad59ebd048e93303 0001-core-Fix-use-after-free-issue-in-test.patch 774e2c28168353c5933293d4ed17ed7c5c88426290ed3500cbf2d3131dd406d2e6944bdc1b3db90c8310c71cd6db67aaae0f3459eadf47484c9cbfaaf1e712de 0002-Make-sure-expiration-time-is-interpreted-as-unsigned.patch d62367b69f31b507f0bbdfd6778a1491892f0ec26f8345a2186af78b8123e6d4e9687a90b0425a8cd5fb074e62d24f849d121c58b004ae68bed4e8260f7d5c6b 0003-python310.patch"