termux-packages/x11-packages/gcr/build.sh

35 lines
999 B
Bash
Raw Normal View History

2022-04-22 22:07:17 +02:00
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"
}