void-packages/srcpkgs/gpgme/template
maxice8 28626f42a8 gpgme: update to 1.11.1.
Closes #13651.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-04-20 17:33:31 +02:00

81 lines
2.2 KiB
Bash

# Template file for 'gpgme'
pkgname=gpgme
version=1.11.1
revision=1
build_style=gnu-configure
configure_args="--enable-fd-passing --disable-gpgconf-test
--disable-gpg-test --disable-gpgsm-test
--with-libgpg-error-prefix=$XBPS_CROSS_BASE/usr
--with-libassuan-prefix=$XBPS_CROSS_BASE/usr"
hostmakedepends="gnupg2 pkg-config qt5-host-tools qt5-qmake"
makedepends="libassuan-devel qt5-tools-devel"
depends="gnupg2"
short_desc="GnuPG Made Easy"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://www.gnupg.org/software/gpgme/index.html"
distfiles="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2"
checksum=2d1b111774d2e3dd26dcd7c251819ce4ef774ec5e566251eb9308fa7542fbd6f
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" ac_cv_sys_file_offset_bits=no";;
i686*|arm*)
CFLAGS="-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1"
CXXFLAGS="${CFLAGS}"
;;
esac
CXXFLAGS+=" -D_GLIBCXX_USE_C99_STDIO=1"
post_extract() {
sed -i 's|GPG = gpg|GPG = gpg2|g' tests/gpg/Makefile.* \
lang/qt/tests/Makefile.* lang/python/tests/Makefile.*
}
gpgme-devel_package() {
depends="${makedepends/qt5-tools-devel/} gpgme>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/gpgme-config
vmove usr/include/gpgme.h
vmove usr/share
vmove usr/lib/libgpgme.so
}
}
gpgmepp_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - C++ library"
pkg_install() {
vmove usr/lib/libgpgmepp.so.*
}
}
gpgmepp-devel_package() {
depends="gpgme-devel>=${version}_${revision} gpgmepp>=${version}_${revision}"
short_desc+=" - C++ library development files"
pkg_install() {
vmove usr/include/gpgme++
vmove usr/lib/libgpgmepp.so
vmove usr/lib/cmake/Gpgmepp/GpgmeppConfig.cmake
vmove usr/lib/cmake/Gpgmepp/GpgmeppConfigVersion.cmake
}
}
gpgmeqt_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - Qt binding"
pkg_install() {
vmove usr/lib/libqgpgme.so.*
}
}
gpgmeqt-devel_package() {
depends="gpgme-devel>=${version}_${revision} gpgmeqt>=${version}_${revision}"
short_desc+=" - Qt binding development files"
pkg_install() {
vmove usr/include/QGpgME
vmove usr/include/qgpgme
vmove usr/lib/libqgpgme.so
vmove usr/lib/cmake/QGpgme
}
}