这是indexloc提供的服务,不要输入任何密码
Skip to content

bump(x11/vala-panel-appmenu): 25.04 #25451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions x11-packages/vala-panel-appmenu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://gitlab.com/vala-panel-project/vala-panel-appmenu
TERMUX_PKG_DESCRIPTION="Global Menu for Vala Panel (metapackage)"
TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="24.05"
TERMUX_PKG_VERSION="25.04"
TERMUX_PKG_SRCURL=https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/archive/${TERMUX_PKG_VERSION}/vala-panel-appmenu-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=4dd891578429199d2310dc6ff37008be2bb26d045e1fdbbaed8d607af70f7cb2
TERMUX_PKG_SHA256=ff270de372c41f18f64e8788629dd4cc9f116a89ee8947e3fc2657b19182e2dc
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="glib"
TERMUX_PKG_BUILD_DEPENDS="g-ir-scanner, glib-cross, gtk2, gtk3, valac"
Expand All @@ -26,4 +26,18 @@ termux_step_pre_configure() {
CPPFLAGS+=" -Dulong=u_long"
LDFLAGS+=" -lX11"
termux_setup_glib_cross_pkg_config_wrapper

if [[ "$TERMUX_ON_DEVICE_BUILD" == "false" ]]; then
# adjust valac wrapper created by the cross-compilation mode
# of termux_setup_gir, to avoid a specific error
# that only happens to vala-panel-appmenu and
# only happens when cross-compiling it
# error: The name `Property' does not exist in the context of `Xfconf' (libxfconf-0)
rm -f "$TERMUX_PREFIX/lib/pkgconfig/appmenu-glib-translator.pc"
mkdir -p "$TERMUX_PKG_TMPDIR/custom-bin"
cp "$(command -v valac)" "$TERMUX_PKG_TMPDIR/custom-bin"
sed -i "s|--vapidir=\"$TERMUX_PREFIX/share/vala/vapi\"||g" \
"$TERMUX_PKG_TMPDIR/custom-bin/valac"
export PATH="$TERMUX_PKG_TMPDIR/custom-bin:$PATH"
fi
}