mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Navit - Rebased navit.xml from trunk; Added HRO Phoenix as initial center; changed zoom for driving; Set default orientation to North; Set units to Imperial; Enabled initial support for speech-to-text
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#!/bin/bash
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 1 October 2024
|
||||
# Updated : 2 OCtober 2024
|
||||
# Purpose : Navit installer for EmComm Tools
|
||||
# Category : Maps
|
||||
#
|
||||
# The Navit package is broken in the Ubuntu repository. The following installation is based
|
||||
# on a fixed reported in https://github.com/navit-gps/navit/issues/1228
|
||||
@@ -10,29 +12,7 @@ apt install \
|
||||
navit \
|
||||
navit-gui-gtk \
|
||||
navit-graphics-gtk-drawing-area \
|
||||
libcanberra-gtk-dev \
|
||||
maptool \
|
||||
espeak-ng \
|
||||
espeak \
|
||||
-y
|
||||
|
||||
missing_layout_files=(
|
||||
"navit_layout_bike_shipped.xml"
|
||||
"navit_layout_car_android_shipped.xml"
|
||||
"navit_layout_car_dark_shipped.xml"
|
||||
"navit_layout_car_generatedarkxml.sh"
|
||||
"navit_layout_car_shipped.xml"
|
||||
"navit_layout_car_simple_shipped.xml"
|
||||
"navit_layout_th_shipped.xml"
|
||||
)
|
||||
|
||||
echo "Patching broken Navit apt installation..."
|
||||
TARGET_DIR=/usr/share/navit
|
||||
for file in "${missing_layout_files[@]}"
|
||||
do
|
||||
curl -s -f -L -O https://raw.githubusercontent.com/navit-gps/navit/trunk/navit/${file}
|
||||
mv -v ${file} "${TARGET_DIR}/${file}"
|
||||
done
|
||||
|
||||
# Delete types that have errors
|
||||
sed -i -e '/item_types="cliff,embankment"/,+7d' ${TARGET_DIR}/navit_layout_car_shipped.xml
|
||||
|
||||
# Copy arizona.bin to ~/.navit/maps
|
||||
|
||||
Reference in New Issue
Block a user