# Maintainer: Gonzalo Exequiel Pedone # Contributor: Tobias Powalowski # Contributor: Roman Kyrylych # Contributor: Sarah Hay _android_arch=x86 pkgname=android-${_android_arch}-gpgme pkgver=1.23.2 pkgrel=1 arch=('any') pkgdesc="A C wrapper library for GnuPG (Android ${_android_arch})" url='https://www.gnupg.org/related_software/gpgme/' license=('LGPL') depends=("android-${_android_arch}-libgpg-error" 'gnupg>=2' 'python') makedepends=("android-${_android_arch}-libgpg-error" 'gnupg' 'python' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'swig') options=(!strip !buildflags staticlibs !emptydirs) source=("https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${pkgver}.tar.bz2"{,.sig}) md5sums=('01a8c05b409847e87daf0543e91f8c37' 'SKIP') validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA' # Werner Koch (dist signing 2020) 'AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD') # Niibe Yutaka (GnuPG Release Key) prepare() { cd "${srcdir}/gpgme-$pkgver" source android-env ${_android_arch} autoreconf -fi } build() { cd "${srcdir}/gpgme-$pkgver" source android-env ${_android_arch} android-${_android_arch}-configure \ --enable-languages=cl,cpp \ --disable-fd-passing \ --disable-gpgsm-test make $MAKEFLAGS } package() { cd "${srcdir}/gpgme-$pkgver" source android-env ${_android_arch} make DESTDIR="$pkgdir" install rm -rf "$pkgdir/${ANDROID_PREFIX_BIN}" rm -rf "$pkgdir/${ANDROID_PREFIX_SHARE}/aclocal" rm -rf "$pkgdir/${ANDROID_PREFIX_SHARE}/info" ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so ${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a }