# Contributor: William Pitcock # Maintainer: Natanael Copa pkgname=gpgme pkgver=1.12.0 pkgrel=3 pkgdesc="gnupg made easy" url="https://www.gnupg.org/related_software/gpgme/" arch="all" license="GPL" depends="gnupg" depends_dev="libgpg-error-dev libassuan-dev" makedepends="$depends_dev python3-dev py3-setuptools swig" subpackages="$pkgname-dev $pkgname-doc gpgmepp py3-gpgme:py3" source="https://www.gnupg.org/ftp/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2 0001-Disable-failing-tests-x86-armhf.patch " builddir="$srcdir"/gpgme-$pkgver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-languages="cl cpp python3" make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } check() { cd "$builddir" make check } gpgmepp() { pkgdesc="C++ bindings for GPGME" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgpgmepp.so.* "$subpkgdir"/usr/lib/ } py3() { pkgdesc="Python 3 bindings for $pkgname" depends="$depends $pkgname python3" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/ } sha512sums="c228b3df28377df882be536ada56dc9c73150048a58e591aa4495f89c854af95820152cd60139840f994c249e9c7df50d8b89eb9d6dc4ce02aa80bbfebcdd014 gpgme-1.12.0.tar.bz2 9a461042175e8771b685967059c8760050094925a4a577b62d2a4a3c5a4c135e857aa812f5cf6019241e73c941837ad449a9c51b41fd661957026b0ae9c1198c 0001-Disable-failing-tests-x86-armhf.patch"