new package: gcr

This commit is contained in:
Tee KOBAYASHI 2022-04-23 05:07:17 +09:00 committed by xtkoba
parent 1630a81b4a
commit 0ede9ccdf0

34
x11-packages/gcr/build.sh Normal file
View File

@ -0,0 +1,34 @@
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"
TERMUX_PKG_VERSION=3.41.0
TERMUX_PKG_SRCURL=https://gitlab.gnome.org/GNOME/gcr/-/archive/${TERMUX_PKG_VERSION}/gcr-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=cac182dadc47f95b7d83f4b0712d168c8f35de81c3c20c9f972edcbdf95b3328
TERMUX_PKG_DEPENDS="glib, gtk3, libcairo, libgcrypt, p11-kit, pango"
TERMUX_PKG_BUILD_DEPENDS="gnupg"
TERMUX_PKG_RECOMMENDS="gnupg"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dintrospection=false
-Dgtk=true
-Dgtk_doc=false
-Dgpg_path=$TERMUX_PREFIX/bin/gpg
-Dssh_agent=false
-Dsystemd=disabled
"
termux_step_pre_configure() {
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"
}