Files
termux-packages/packages/libx11/build.sh
termux-pacman-bot 4b1ee14476 bump(main/libx11): 1.8.10
This commit has been automatically submitted by Github Actions.
2024-07-29 00:28:03 +00:00

37 lines
1.2 KiB
Bash

# X11 package
TERMUX_PKG_HOMEPAGE=https://xorg.freedesktop.org/
TERMUX_PKG_DESCRIPTION="X11 client-side library"
TERMUX_PKG_LICENSE="MIT, X11"
TERMUX_PKG_LICENSE_FILE="COPYING"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.8.10"
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/lib/libX11-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=2b3b3dad9347db41dca56beb7db5878f283bde1142f04d9f8e478af435dfdc53
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libandroid-support, libxcb"
TERMUX_PKG_BUILD_DEPENDS="xorgproto, xorg-util-macros, xtrans"
TERMUX_PKG_RECOMMENDS="xorg-xauth"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_path_RAWCPP=/usr/bin/cpp
--enable-malloc0returnsnull
"
termux_step_post_massage() {
# Regression test for broken XLC_LOCALE files. Do not remove.
local f
for f in share/X11/locale/*/XLC_LOCALE; do
if [ ! -f "${f}" ]; then
termux_error_exit "File not found: ${f}"
fi
if LC_ALL=C grep -E 'ct_encoding.*;\s*$' "${f}"; then
termux_error_exit "Broken XLC_LOCALE file found: ${f}"
fi
done
# Seems like some programs in the wild try to dlopen(3) `libX11.so.6`.
cd ${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib || exit 1
if [ ! -e "./libX11.so.6" ]; then
ln -sf libX11.so libX11.so.6
fi
}