Files
horizon-packages/srcpkgs/gpgme/template
T

52 lines
1.6 KiB
Bash

# Template file for 'gpgme'
pkgname=gpgme
version=2.1.2
revision=1
build_style=gnu-configure
build_helper="python3"
configure_args="--enable-fd-passing
--with-libgpg-error-prefix=$XBPS_CROSS_BASE/usr
--with-libassuan-prefix=$XBPS_CROSS_BASE/usr"
hostmakedepends="gnupg pkg-config"
makedepends="libassuan-devel libgpg-error-devel"
checkdepends="which"
short_desc="GnuPG Made Easy"
maintainer="Orphaned <orphan@voidlinux.org>"
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=gpgme.git;a=blob_plain;f=NEWS;hb=HEAD"
distfiles="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2"
checksum=0687a95b299871c4141f507c0f740de6b429c9ac067d0fa4e062e3264df5fb77
CFLAGS="-D_LARGEFILE64_SOURCE"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" ac_cv_sys_file_offset_bits=no"
fi
libgpgme_package() {
# posix-util.c call gpgconf to get GnuPG binaries
depends="gnupg>=2"
short_desc+=" - library"
pkg_install() {
vmove "usr/lib/*.so.*"
vmkdir usr/lib/thunderbird
# https://bugzilla.mozilla.org/show_bug.cgi?id=1967121
ln -s ../libgpgme.so.45 ${PKGDESTDIR}/usr/lib/thunderbird/libgpgme.so
}
}
gpgme-devel_package() {
depends="libassuan-devel libgpg-error-devel libgpgme>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig
vmove usr/bin/gpgme-config
vmove usr/include/gpgme.h
vmove usr/share/aclocal
vmove usr/share/common-lisp
vmove usr/share/info
vmove usr/lib/libgpgme.so
vmove usr/lib/libgpgme.la
}
}