mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-08 14:21:51 +00:00
- See https://github.com/termux/termux-packages/pull/24215#issuecomment-2788227037 - Replaces all instances of `export PATH="$TERMUX_PREFIX/opt/libwayland/cross/bin:$PATH"` and `wayland-scanner` patches in reverse dependencies with `termux_setup_wayland_cross_pkg_config_wrapper` - Some packages were working because they were using `/usr/bin/wayland-scanner`, this changes all of them to use `$PREFIX/opt/libwayland/cross/bin/wayland-scanner` instead [no ci]
23 lines
905 B
Bash
23 lines
905 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/swaywm/sway
|
|
TERMUX_PKG_DESCRIPTION="i3-compatible Wayland compositor"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.10.1"
|
|
TERMUX_PKG_SRCURL=https://github.com/swaywm/sway/releases/download/$TERMUX_PKG_VERSION/sway-$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=b2fbf3a2f94c8926efa18d6af59bb9f5f1eafa6d46491284b1610c57bef2d105
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="gdk-pixbuf, json-c, libandroid-wordexp, libcairo, libevdev, libwayland, pango, pcre2, wlroots (>= 0.18.1)"
|
|
TERMUX_PKG_BUILD_DEPENDS="libwayland-protocols, libwayland-cross-scanner, scdoc"
|
|
TERMUX_PKG_RECOMMENDS="xwayland"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-Dman-pages=enabled
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_wayland_cross_pkg_config_wrapper
|
|
|
|
# XXX: use alloca for shm_open
|
|
export CPPFLAGS+=" -Wno-alloca"
|
|
export LDFLAGS+=" -landroid-wordexp"
|
|
}
|