# Template file for 'gpgmepp'
pkgname=gpgmepp
version=2.1.0
revision=1
build_style=cmake
configure_args="-DENABLE_TESTING=ON"
hostmakedepends="pkg-config"
makedepends="gpgme-devel libgpg-error-devel"
short_desc="GnuPG Made Easy - C++ libraries"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://www.gnupg.org/software/gpgme/index.html"
changelog="https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgmepp.git;a=blob_plain;f=ChangeLog;hb=HEAD"
distfiles="https://www.gnupg.org/ftp/gcrypt/gpgmepp/gpgmepp-${version}.tar.xz"
checksum=57f804468f0204504b172c6b139cb05124b4263be7ad514932c7c4c5062a16e2

gpgmepp-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} $makedepends"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
