new package: gcr4

This commit is contained in:
Tee KOBAYASHI 2022-10-22 16:02:20 +09:00 committed by xtkoba
parent 7e738e8b5b
commit 1b7727bce4
3 changed files with 217 additions and 0 deletions

View File

@ -0,0 +1,48 @@
TERMUX_PKG_HOMEPAGE=https://gitlab.gnome.org/GNOME/gcr
TERMUX_PKG_DESCRIPTION="A library for displaying certificates and crypto UI, accessing key stores"
TERMUX_PKG_LICENSE="LGPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
_MAJOR_VERSION=4.0
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.0
TERMUX_PKG_SRCURL=https://download.gnome.org/sources/gcr/${_MAJOR_VERSION}/gcr-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=c45855924f0ee7bab43e2dd38bfafd2ac815c6e9864341c0161e171173dcec7c
TERMUX_PKG_DEPENDS="glib, libgcrypt, p11-kit"
TERMUX_PKG_BUILD_DEPENDS="g-ir-scanner, gnupg"
TERMUX_PKG_RECOMMENDS="gnupg"
TERMUX_PKG_DISABLE_GIR=false
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dintrospection=true
-Dgtk4=false
-Dgtk_doc=false
-Dgpg_path=$TERMUX_PREFIX/bin/gpg
-Dssh_agent=false
-Dsystemd=disabled
"
termux_step_pre_configure() {
termux_setup_gir
local bin_dir=$TERMUX_PKG_BUILDDIR/_dummy/bin
mkdir -p $bin_dir
pushd $bin_dir
local p
for p in ssh-add ssh-agent; do
cat <<-EOF > $p
#!$(command -v sh)
exit 0
EOF
chmod 0700 $p
done
popd
export PATH+=":$bin_dir"
}
termux_step_post_massage() {
local _GUARD_FILES="lib/libgcr-4.so lib/libgck-2.so"
local f
for f in ${_GUARD_FILES}; do
if [ ! -e "${f}" ]; then
termux_error_exit "Error: file ${f} not found."
fi
done
}

View File

@ -0,0 +1,79 @@
<?xml version="1.0"?>
<dump>
<enum name="GckError" get-type="gck_error_get_type">
<member name="GCK_ERROR_MODULE_PROBLEM" nick="problem" value="-951891199"/>
</enum> <flags name="GckSessionOptions" get-type="gck_session_options_get_type">
<member name="GCK_SESSION_READ_ONLY" nick="read-only" value="0"/>
<member name="GCK_SESSION_READ_WRITE" nick="read-write" value="2"/>
<member name="GCK_SESSION_LOGIN_USER" nick="login-user" value="4"/>
<member name="GCK_SESSION_AUTHENTICATE" nick="authenticate" value="8"/>
</flags>
<enum name="GckBuilderFlags" get-type="gck_builder_flags_get_type">
<member name="GCK_BUILDER_NONE" nick="none" value="0"/>
<member name="GCK_BUILDER_SECURE_MEMORY" nick="secure-memory" value="1"/>
</enum> <enum name="GckUriError" get-type="gck_uri_error_get_type">
<member name="GCK_URI_BAD_SCHEME" nick="bad-scheme" value="1"/>
<member name="GCK_URI_BAD_ENCODING" nick="bad-encoding" value="2"/>
<member name="GCK_URI_BAD_SYNTAX" nick="bad-syntax" value="3"/>
<member name="GCK_URI_BAD_VERSION" nick="bad-version" value="4"/>
<member name="GCK_URI_NOT_FOUND" nick="not-found" value="5"/>
</enum> <flags name="GckUriFlags" get-type="gck_uri_flags_get_type">
<member name="GCK_URI_FOR_OBJECT" nick="for-object" value="2"/>
<member name="GCK_URI_FOR_TOKEN" nick="for-token" value="4"/>
<member name="GCK_URI_FOR_MODULE" nick="for-module" value="8"/>
<member name="GCK_URI_WITH_VERSION" nick="with-version" value="16"/>
<member name="GCK_URI_FOR_ANY" nick="for-any" value="65535"/>
</flags>
<boxed name="GckAttribute" get-type="gck_attribute_get_type"/>
<boxed name="GckBuilder" get-type="gck_builder_get_type"/>
<boxed name="GckAttributes" get-type="gck_attributes_get_type"/>
<boxed name="GckModuleInfo" get-type="gck_module_info_get_type"/>
<class name="GckModule" get-type="gck_module_get_type" parents="GObject">
<property name="path" type="gchararray" flags="235"/>
<property name="functions" type="gpointer" flags="235"/>
</class>
<class name="GckEnumerator" get-type="gck_enumerator_get_type" parents="GObject">
<property name="interaction" type="GTlsInteraction" flags="227"/>
<property name="object-type" type="GType" flags="227"/>
<property name="chained" type="GckEnumerator" flags="227"/>
</class>
<boxed name="GckSlotInfo" get-type="gck_slot_info_get_type"/>
<boxed name="GckTokenInfo" get-type="gck_token_info_get_type"/>
<boxed name="GckMechanismInfo" get-type="gck_mechanism_info_get_type"/>
<class name="GckSlot" get-type="gck_slot_get_type" parents="GObject">
<property name="module" type="GckModule" flags="235"/>
<property name="handle" type="gulong" flags="235"/>
</class>
<boxed name="GckSessionInfo" get-type="gck_session_info_get_type"/>
<class name="GckSession" get-type="gck_session_get_type" parents="GObject">
<implements name="GInitable"/>
<implements name="GAsyncInitable"/>
<property name="module" type="GckModule" flags="225"/>
<property name="handle" type="gulong" flags="235"/>
<property name="interaction" type="GTlsInteraction" flags="227"/>
<property name="slot" type="GckSlot" flags="235"/>
<property name="options" type="GckSessionOptions" flags="235"/>
<property name="opening-flags" type="gulong" flags="234"/>
<property name="app-data" type="gpointer" flags="234"/>
<signal name="discard-handle" return="gboolean" when="last">
<param type="gulong"/>
</signal>
</class>
<class name="GckObject" get-type="gck_object_get_type" parents="GObject">
<property name="module" type="GckModule" flags="235"/>
<property name="session" type="GckSession" flags="235"/>
<property name="handle" type="gulong" flags="235"/>
</class>
<interface name="GckObjectCache" get-type="gck_object_cache_get_type">
<prerequisite name="GckObject"/>
<property name="attributes" type="GckAttributes" flags="227"/>
</interface>
<class name="GckPassword" get-type="gck_password_get_type" parents="GTlsPassword,GObject">
<property name="module" type="GckModule" flags="225"/>
<property name="token" type="GckSlot" flags="235"/>
<property name="key" type="GckObject" flags="235"/>
</class>
<boxed name="GckUriData" get-type="gck_uri_data_get_type"/>
<error-quark function="gck_error_quark" domain="GckError"/>
<error-quark function="gck_uri_error_quark" domain="GckUriError"/>
</dump>

View File

@ -0,0 +1,90 @@
<?xml version="1.0"?>
<dump>
<interface name="GcrCertificate" get-type="gcr_certificate_get_type">
<property name="description" type="gchararray" flags="225"/>
<property name="expiry-date" type="GDateTime" flags="225"/>
<property name="issuer-name" type="gchararray" flags="225"/>
<property name="label" type="gchararray" flags="225"/>
<property name="subject-name" type="gchararray" flags="225"/>
</interface>
<class name="GcrCertificateChain" get-type="gcr_certificate_chain_get_type" parents="GObject">
<property name="status" type="GcrCertificateChainStatus" flags="225"/>
<property name="length" type="guint" flags="225"/>
</class>
<class name="GcrCertificateSection" get-type="gcr_certificate_section_get_type" parents="GObject" final="1">
<property name="label" type="gchararray" flags="235"/>
<property name="fields" type="GListModel" flags="225"/>
<property name="flags" type="GcrCertificateSectionFlags" flags="235"/>
</class>
<class name="GcrCertificateField" get-type="gcr_certificate_field_get_type" parents="GObject" final="1">
<property name="label" type="gchararray" flags="235"/>
<property name="value" type="GValue" flags="225"/>
<property name="section" type="GcrCertificateSection" flags="235"/>
</class>
<class name="GcrCertificateRequest" get-type="gcr_certificate_request_get_type" parents="GObject">
<property name="format" type="GcrCertificateRequestFormat" flags="235"/>
<property name="private-key" type="GckObject" flags="235"/>
</class>
<class name="GcrParser" get-type="gcr_parser_get_type" parents="GObject">
<property name="parsed-label" type="gchararray" flags="225"/>
<property name="parsed-attributes" type="GckAttributes" flags="225"/>
<property name="parsed-description" type="gchararray" flags="225"/>
<signal name="authenticate" return="gboolean" when="last">
<param type="gint"/>
</signal>
<signal name="parsed" return="void" when="first">
</signal>
</class>
<boxed name="GcrParsed" get-type="gcr_parsed_get_type"/>
<interface name="GcrImporter" get-type="gcr_importer_get_type">
<property name="interaction" type="GTlsInteraction" flags="227"/>
<property name="label" type="gchararray" flags="225"/>
<property name="uri" type="gchararray" flags="225"/>
</interface>
<interface name="GcrPrompt" get-type="gcr_prompt_get_type">
<property name="caller-window" type="gchararray" flags="231"/>
<property name="cancel-label" type="gchararray" flags="231"/>
<property name="choice-chosen" type="gboolean" flags="227"/>
<property name="choice-label" type="gchararray" flags="231"/>
<property name="continue-label" type="gchararray" flags="231"/>
<property name="description" type="gchararray" flags="231"/>
<property name="message" type="gchararray" flags="231"/>
<property name="password-new" type="gboolean" flags="227"/>
<property name="password-strength" type="gint" flags="225"/>
<property name="title" type="gchararray" flags="231"/>
<property name="warning" type="gchararray" flags="231"/>
<signal name="prompt-close" return="void" when="first">
</signal>
</interface>
<class name="GcrSecretExchange" get-type="gcr_secret_exchange_get_type" parents="GObject">
<property name="protocol" type="gchararray" flags="235"/>
</class>
<class name="GcrSystemPrompter" get-type="gcr_system_prompter_get_type" parents="GObject">
<property name="mode" type="GcrSystemPrompterMode" flags="235"/>
<property name="prompt-type" type="GType" flags="235"/>
<property name="prompting" type="gboolean" flags="225"/>
<signal name="new-prompt" return="GcrPrompt" when="last">
</signal>
</class>
<class name="GcrPkcs11Certificate" get-type="gcr_pkcs11_certificate_get_type" parents="GckObject,GObject">
<implements name="GcrCertificate"/>
<property name="attributes" type="GckAttributes" flags="235"/>
</class>
<class name="GcrSimpleCertificate" get-type="gcr_simple_certificate_get_type" parents="GObject">
<implements name="GcrCertificate"/>
</class>
<class name="GcrSshAskpass" get-type="gcr_ssh_askpass_get_type" parents="GObject">
<property name="interaction" type="GTlsInteraction" flags="235"/>
</class>
<class name="GcrSystemPrompt" get-type="gcr_system_prompt_get_type" parents="GObject">
<implements name="GcrPrompt"/>
<implements name="GInitable"/>
<implements name="GAsyncInitable"/>
<property name="bus-name" type="gchararray" flags="235"/>
<property name="secret-exchange" type="GcrSecretExchange" flags="227"/>
<property name="timeout-seconds" type="gint" flags="234"/>
</class>
<interface name="GcrImportInteraction" get-type="gcr_import_interaction_get_type">
<prerequisite name="GTlsInteraction"/>
</interface>
</dump>