0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-27 07:24:57 +00:00
Files
Termux Github Actions 085405deb2 bump(x11/cinnamon): 6.4.13
This commit has been automatically submitted by Github Actions.
2025-09-22 18:26:54 +00:00

92 lines
3.9 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/linuxmint/cinnamon
TERMUX_PKG_DESCRIPTION="Cinnamon shell"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="6.4.13"
TERMUX_PKG_SRCURL="https://github.com/linuxmint/cinnamon/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=32de89ebd195ea27d9a220715e70c65664058d3e89a380f83addc07c81692d2d
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
TERMUX_PKG_DEPENDS="glib, gobject-introspection, cjs, muffin, cinnamon-menus, cinnamon-session, dbus, gcr, gdk-pixbuf, atk, opengl, gtk3, pango, xapp, libx11, libxml2, sassc, cogl, clutter, clutter-gtk, gnome-backgrounds, cinnamon-control-center, python-pillow, python-xapp, gettext, libadapta, mint-y-icon-theme, mint-themes, cinnamon-settings-daemon, gsound"
TERMUX_PKG_BUILD_DEPENDS="g-ir-scanner, glib-cross, intltool, python-libsass"
TERMUX_PKG_SUGGESTS="gnome-terminal, gnome-screenshot"
TERMUX_PKG_PYTHON_BUILD_DEPS="pysass"
TERMUX_PKG_VERSIONED_GIR=false
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Ddocs=false
-Dbuild_recorder=false
-Ddisable_networkmanager=true
-Dpy3modules_dir="$TERMUX_PYTHON_HOME/site-packages"
-Dwayland=false
-Dpolkit=false
"
termux_pkg_auto_update() {
local latest_release
latest_release="$(git ls-remote --tags "$TERMUX_PKG_HOMEPAGE.git" \
| grep -oP "refs/tags/\K${TERMUX_PKG_UPDATE_VERSION_REGEXP}$" \
| sort -V \
| tail -n1)"
if [[ "${latest_release}" == "${TERMUX_PKG_VERSION}" ]]; then
echo "INFO: No update needed. Already at version '${TERMUX_PKG_VERSION}'."
return
fi
termux_pkg_upgrade_version "${latest_release}"
}
termux_step_pre_configure() {
termux_setup_gir
termux_setup_glib_cross_pkg_config_wrapper
export TERMUX_MESON_ENABLE_SOVERSION=1
# allow use of GNU/Linux pysass (TERMUX_PKG_PYTHON_BUILD_DEPS="pysass") during cross-compilation
# but bionic-libc pysass (TERMUX_PKG_BUILD_DEPENDS="python-sass") during on-device build
if [[ "$TERMUX_ON_DEVICE_BUILD" == "false" ]]; then
export PYTHONPATH="${TERMUX_PYTHON_CROSSENV_PREFIX}/cross/lib/python${TERMUX_PYTHON_VERSION}/site-packages"
fi
# @TERMUX_PYTHON_VERSION@ and @TERMUX_PYTHON_HOME@ do not get
# automatically applied by termux_step_patch_package(), so it must be a .diff
patch="$TERMUX_PKG_BUILDER_DIR/fix-user-paths.diff"
echo "Applying patch: $(basename "$patch")"
test -f "$patch" && sed \
-e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" \
-e "s%\@TERMUX_PYTHON_HOME\@%${TERMUX_PYTHON_HOME}%g" \
"$patch" | patch --silent -p1 -d"$TERMUX_PKG_SRCDIR"
}
termux_step_post_make_install() {
# disabling this sections because they will not work in termux
mv $TERMUX_PREFIX/share/cinnamon/cinnamon-settings/modules/cs_user.py $TERMUX_PREFIX//share/cinnamon/cinnamon-settings/modules/cs_user.py.bak
rm -rf $TERMUX_PREFIX/share/cinnamon/applets/user@cinnamon.org
rm -rf $TERMUX_PREFIX/share/cinnamon/applets/network@cinnamon.org
rm -rf $TERMUX_PREFIX/share/cinnamon/applets/printers@cinnamon.org
########################################################################
# Based on :- https://src.fedoraproject.org/rpms/cinnamon/tree/rawhide #
########################################################################
# Install gschema overrides
schemas_dir="$TERMUX_PREFIX/share/glib-2.0/schemas"
mkdir -p "$schemas_dir"
install -Dm644 "$TERMUX_PKG_BUILDER_DIR/10_cinnamon-common.gschema.override" "$schemas_dir/10_cinnamon-common.gschema.override"
cat <<-EOF > "$schemas_dir/10_cinnamon-wallpaper.gschema.override"
[org.cinnamon.desktop.background]
picture-uri='file://$TERMUX_PREFIX/share/backgrounds/gnome/adwaita-d.jpg'
EOF
# Install style file
styles_dir="$TERMUX_PREFIX/share/cinnamon/styles.d"
mkdir -p "$styles_dir"
install -Dm644 "$TERMUX_PKG_BUILDER_DIR/22_termux.styles" "$styles_dir/22_termux.styles"
}
termux_step_create_debscripts() {
cat <<-EOF >./postinst
#!$TERMUX_PREFIX/bin/sh
echo "Installing dependencies through pip..."
pip3 install pytz tinycss2 requests
EOF
}