mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-22 16:57:09 +00:00
37 lines
1.2 KiB
Bash
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.11"
|
|
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/lib/libX11-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=3b74e82943924b45a0b778cc6842976909c3010d9445a8fd185e1dca4d380e88
|
|
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
|
|
}
|