Skip to content

Commit

Permalink
gcr: Add version guard
Browse files Browse the repository at this point in the history
%ci:no-build
  • Loading branch information
xtkoba committed Oct 15, 2022
1 parent d0913e3 commit ed88337
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions x11-packages/gcr/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ 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"
# This specific package is for libgcr-3.
_MAJOR_VERSION=3.41
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1
TERMUX_PKG_SRCURL=https://download.gnome.org/sources/gcr/${_MAJOR_VERSION}/gcr-${TERMUX_PKG_VERSION}.tar.xz
Expand Down Expand Up @@ -33,3 +34,13 @@ termux_step_pre_configure() {
popd
export PATH+=":$bin_dir"
}

termux_step_post_massage() {
local _GUARD_FILES="lib/libgcr-3.so lib/libgck-1.so"
local f
for f in ${_GUARD_FILES}; do
if [ ! -e "${f}" ]; then
termux_error_exit "Error: file ${f} not found."
fi
done
}

0 comments on commit ed88337

Please sign in to comment.