mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-19 16:52:16 +00:00
28 lines
1.1 KiB
Bash
28 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://c-ares.org/
|
|
TERMUX_PKG_DESCRIPTION="Library for asynchronous DNS requests (including name resolves)"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.34.4"
|
|
TERMUX_PKG_SRCURL=https://github.com/c-ares/c-ares/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=a35f7c4cdbdfaf0a69a9a50029e95ffe403daf605fade05c649d18333592222d
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+.\d+.\d+"
|
|
TERMUX_PKG_DEPENDS="resolv-conf"
|
|
TERMUX_PKG_BREAKS="c-ares-dev"
|
|
TERMUX_PKG_REPLACES="c-ares-dev"
|
|
# Build with cmake to install cmake/c-ares/*.cmake files:
|
|
TERMUX_PKG_FORCE_CMAKE=true
|
|
TERMUX_PKG_RM_AFTER_INSTALL="bin/"
|
|
|
|
termux_step_post_get_source() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=2
|
|
|
|
local e=$(sed -En 's/^\s*SET\s*\(CARES_LIB_VERSIONINFO\s+"?([0-9]+):([0-9]+):([0-9]+).*/\1-\3/p' \
|
|
CMakeLists.txt)
|
|
if [ ! "${e}" ] || [ "${_SOVERSION}" != "$(( "${e}" ))" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|