mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-10 03:40:52 +00:00
- Fixes https://github.com/termux/termux-packages/issues/26799 There is a new executable file, "`codelldb-launch`". I don't really understand exactly what it does yet, but codelldb was printing an error "unable to find codelldb-launch!" until I moved it out of the `.vsix` file and hardcoded the paths to it at `$TERMUX_PREFIX/bin`, just like I did for the `codelldb` executable, which still exists. After doing that, this bump is working on my device. I have also updated the comments about 32-bit exclusion to be accurate to the current situation. See here for more information about the problems with `codelldb` on 32-bit Android: https://github.com/termux/termux-packages/pull/25779#issuecomment-3213373449
25 lines
806 B
Bash
25 lines
806 B
Bash
TERMUX_SUBPKG_DESCRIPTION="A native debugger extension for code-oss based on LLDB"
|
|
TERMUX_SUBPKG_INCLUDE="share/doc/code-oss-extension-codelldb"
|
|
TERMUX_SUBPKG_DEPENDS="code-oss, vsix-package-codelldb"
|
|
# depends on vsix-package-codelldb,
|
|
# which depends on codelldb,
|
|
# which does not work properly on 32-bit Android
|
|
TERMUX_SUBPKG_PLATFORM_INDEPENDENT=false
|
|
|
|
termux_step_create_subpkg_debscripts() {
|
|
cat <<-EOF >./postinst
|
|
#!${TERMUX_PREFIX}/bin/sh
|
|
code-oss --install-extension "$TERMUX_PREFIX/opt/vsix-packages/codelldb-$TERMUX_PKG_FULLVERSION.vsix"
|
|
exit 0
|
|
EOF
|
|
cat <<-EOF >./prerm
|
|
#!${TERMUX_PREFIX}/bin/sh
|
|
if [ "$TERMUX_PACKAGE_FORMAT" = "debian" ] && [ "\$1" != "remove" ]; then
|
|
exit 0
|
|
fi
|
|
code-oss --uninstall-extension vadimcn.vscode-lldb
|
|
exit 0
|
|
EOF
|
|
chmod +x ./postinst ./prerm
|
|
}
|