0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-13 11:53:12 +00:00
Files
Termux Github Actions 7482e90219 bump(main/dnsutils): 9.20.8
This commit has been automatically submitted by Github Actions.
2025-04-16 18:25:40 +00:00

36 lines
1.3 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://www.isc.org/bind/
TERMUX_PKG_DESCRIPTION="Clients provided with BIND"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="9.20.8"
TERMUX_PKG_SRCURL="https://downloads.isc.org/isc/bind9/${TERMUX_PKG_VERSION}/bind-${TERMUX_PKG_VERSION}.tar.xz"
TERMUX_PKG_SHA256=3004d99c476beab49a986c2d49f902e2cd7766c9ab18b261e8b353cabf3a04b5
TERMUX_PKG_DEPENDS="cmocka, json-c, libandroid-execinfo, libandroid-glob, libcap, libnghttp2, liburcu, libuv, libxml2, openssl, readline, resolv-conf, zlib"
TERMUX_PKG_BREAKS="dnsutils-dev"
TERMUX_PKG_REPLACES="dnsutils-dev"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ax_cv_have_func_attribute_constructor=yes
ax_cv_have_func_attribute_destructor=yes
lt_cv_prog_compiler_pic_works=yes
--disable-static
--with-json-c
--with-libxml2
--with-liburcu=qsbr
--enable-developer
"
termux_step_pre_configure() {
_RESOLV_CONF=$TERMUX_PREFIX/etc/resolv.conf
CFLAGS+=" $CPPFLAGS -DRESOLV_CONF=\\\"$_RESOLV_CONF\\\""
LDFLAGS+=" -landroid-glob"
}
termux_step_post_configure() {
# Android linker is unable to directly resolve versioned libraries.
# This will create a symlink to versioned library via `libname.so`.
sed -i 's|library_names_spec=.*|library_names_spec="\\\$libname\\\$release\\\$shared_ext \\\$libname\\\$shared_ext"|g' ./libtool
}