Files
termux-packages/packages/libx11/build.sh
termux-pacman-bot 1f76c6316f libx11: Bump to 1.8.6
2023-06-16 01:28:25 +00:00

36 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.6
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/lib/libX11-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=59535b7cc6989ba806a022f7e8533b28c4397b9d86e9d07b6df0c0703fa25cc9
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
}