Files
haikuports/dev-libs/libgpg_error/libgpg_error-1.55.recipe
2025-05-06 12:07:31 +00:00

92 lines
2.2 KiB
Bash

SUMMARY="A library that defines common error values"
DESCRIPTION="This is a library that defines common error values for all GnuPG \
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, Libksba, \
DirMngr, Pinentry, SmartCard Daemon and more."
HOMEPAGE="https://www.gnupg.org/related_software/libraries.en.html#lib-libgpg-error"
COPYRIGHT="2003-2018 g10 Code GmbH"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-$portVersion.tar.bz2"
CHECKSUM_SHA256="95b178148863f07d45df0cea67e880a79b9ef71f5d230baddc0071128516ef78"
SOURCE_DIR="libgpg-error-$portVersion"
PATCHES="libgpg_error-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.39.3"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= 1"
PROVIDES="
libgpg_error$secondaryArchSuffix = $portVersion
cmd:gpg_error$secondaryArchSuffix = $portVersionCompat
cmd:yat2m$secondaryArchSuffix = $portVersionCompat
lib:libgpg_error$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libgpg_error${secondaryArchSuffix}_devel = $portVersion
cmd:gpgrt_config$secondaryArchSuffix = $portVersionCompat
devel:libgpg_error$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libgpg_error$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage libgpg_error$secondaryArchSuffix \
"$binDir"/gpg-error \
"$binDir"/yat2m \
"$libDir"/libgpg-error.so.$libVersion
BUILD()
{
MAKEINFO=true runConfigure ./configure
make LIBS="-lnetwork"
}
INSTALL()
{
make install
rm -f "$libDir"/libgpg-error.la
prepareInstalledDevelLib libgpg-error
fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
maybe_manDir=
rm -rf "$infoDir" "$manDir"
else
maybe_manDir="$manDir"
fi
packageEntries devel \
"$developDir" \
"$binDir"/gpgrt-config \
"$dataDir" \
${maybe_manDir:+"$maybe_manDir"/man1/gpgrt-config.1}
if [ -n "$maybe_manDir" ]; then
rmdir "$maybe_manDir"/man1 && rmdir "$maybe_manDir" || true
fi
}
TEST()
{
make check
}