Skip to content

Commit f5d962d

Browse files
committed
fix: use glib-cross to handle gnome.post_install
1 parent 54f99df commit f5d962d

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

appstore/meson.build

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ install_data(
163163
install_dir: pkgdir / 'inbuild_functions',
164164
)
165165

166-
if not meson.is_cross_build()
167-
gnome.post_install(
168-
gtk_update_icon_cache: true,
169-
update_desktop_database: true,
170-
)
171-
endif
166+
gnome.post_install(
167+
gtk_update_icon_cache: true,
168+
update_desktop_database: true,
169+
)

appstore/termux-packages/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TERMUX_PKG_MAINTAINER="@sabamdarif"
55
TERMUX_PKG_VERSION="@VERSION@"
66
TERMUX_PKG_SRCURL="git+https://github.com/sabamdarif/Termux-AppStore"
77
TERMUX_PKG_DEPENDS="python, pygobject, python-pillow, python-pip, gtk3, glib, aria2, gobject-introspection"
8-
TERMUX_PKG_BUILD_DEPENDS="pkg-config, xorgproto"
8+
TERMUX_PKG_BUILD_DEPENDS="pkg-config, xorgproto, glib-cross"
99
TERMUX_PKG_PYTHON_RUNTIME_DEPS="fuzzysearch"
1010
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
1111
-Dpy3modules_dir=$TERMUX_PYTHON_HOME/site-packages
@@ -16,9 +16,12 @@ termux_step_post_get_source() {
1616
find . -mindepth 1 -maxdepth 1 ! -name 'appstore' ! -name '.git' -exec rm -rf {} +
1717
}
1818

19+
termux_step_pre_configure() {
20+
termux_setup_meson
21+
termux_setup_glib_cross_pkg_config_wrapper
22+
}
23+
1924
termux_step_configure() {
2025
TERMUX_PKG_SRCDIR="$TERMUX_PKG_SRCDIR/appstore"
2126
TERMUX_PKG_BUILDDIR="$TERMUX_PKG_SRCDIR/build"
22-
termux_setup_meson
23-
termux_step_configure_meson
2427
}

0 commit comments

Comments
 (0)