telepathy-glib: Add version guard

%ci:no-build
This commit is contained in:
termux-pacman-bot
2022-10-15 15:44:32 +00:00
parent aa415bc84d
commit ede5ab9a87

View File

@@ -2,11 +2,21 @@ TERMUX_PKG_HOMEPAGE=https://telepathy.freedesktop.org/
TERMUX_PKG_DESCRIPTION="GLib bindings for the Telepathy D-Bus protocol"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.99.11
TERMUX_PKG_REVISION=7
TERMUX_PKG_SRCURL=https://telepathy.freedesktop.org/releases/telepathy-glib/telepathy-glib-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=268cbf0199804ecb6001c7c11e5596bc3cea40a600091c144d14f837ac90cd97
TERMUX_PKG_DEPENDS="dbus-glib"
# Do not bump to 0.99.x.
TERMUX_PKG_VERSION=1:0.24.2
TERMUX_PKG_SRCURL=https://telepathy.freedesktop.org/releases/telepathy-glib/telepathy-glib-${TERMUX_PKG_VERSION:2}.tar.gz
TERMUX_PKG_SHA256=b0a374d771cdd081125f38c3abd079657642301c71a543d555e2bf21919273f0
TERMUX_PKG_DEPENDS="dbus-glib, glib"
TERMUX_PKG_BREAKS="telepathy-glib-dev"
TERMUX_PKG_REPLACES="telepathy-glib-dev"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_massage() {
local _GUARD_FILES="lib/libtelepathy-glib.so"
local f
for f in ${_GUARD_FILES}; do
if [ ! -e "${f}" ]; then
termux_error_exit "Error: file ${f} not found."
fi
done
}