mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-10 09:31:48 +00:00
Fix the following error for cross-compiling. /bin/bash: line 1: /data/data/com.termux/files/usr/bin/glib-compile-resources: cannot execute binary file: Exec format error
46 lines
1.7 KiB
Bash
46 lines
1.7 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://docs.xfce.org/xfce/xfce4-session/start
|
|
TERMUX_PKG_DESCRIPTION="A session manager for XFCE environment"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="4.20.2"
|
|
TERMUX_PKG_SRCURL=https://archive.xfce.org/src/xfce/xfce4-session/${TERMUX_PKG_VERSION%.*}/xfce4-session-${TERMUX_PKG_VERSION}.tar.bz2
|
|
TERMUX_PKG_SHA256=a0b80b7136515bc3c0c54fa859ad420365e29b715b6da0b58a2d2781bfbe73c3
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gtk3, gtk-layer-shell, libcairo, libice, libsm, libwnck, libx11, libxfce4ui, libxfce4util, libxfce4windowing, pango, xfconf, xorg-iceauth, xorg-xrdb"
|
|
TERMUX_PKG_BUILD_DEPENDS="xfce4-dev-tools"
|
|
TERMUX_PKG_RECOMMENDS="gnupg, hicolor-icon-theme, xfce4-settings, xfdesktop, xfwm4"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
ac_cv_path_ICEAUTH=${TERMUX_PREFIX}/bin/iceauth
|
|
--disable-debug
|
|
--enable-gtk-layer-shell
|
|
--enable-wayland
|
|
--enable-x11
|
|
--with-wayland-session-prefix=${TERMUX_PREFIX}
|
|
--with-xsession-prefix=${TERMUX_PREFIX}
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_glib_cross_pkg_config_wrapper
|
|
}
|
|
|
|
termux_step_create_debscripts() {
|
|
cat <<- EOF > ./postinst
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
if [ "\$1" = "configure" ] || [ "\$1" = "abort-upgrade" ]; then
|
|
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
|
|
update-alternatives --install \
|
|
$TERMUX_PREFIX/bin/x-session-manager x-session-manager $TERMUX_PREFIX/bin/xfce4-session 50
|
|
fi
|
|
fi
|
|
EOF
|
|
|
|
cat <<- EOF > ./prerm
|
|
#!$TERMUX_PREFIX/bin/sh
|
|
if [ "\$1" != "upgrade" ]; then
|
|
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
|
|
update-alternatives --remove x-session-manager $TERMUX_PREFIX/bin/xfce4-session
|
|
fi
|
|
fi
|
|
EOF
|
|
}
|