diff options
author | mjbogusz | 2021-06-12 22:16:27 +0200 |
---|---|---|
committer | Mohammad Farzan | 2021-06-20 02:31:31 +0430 |
commit | 9be4a4d8c4a75e1df1bcacdb11314b79763f914c (patch) | |
tree | 18f2c17b15c44eb6002e683ca46c4aab04ef5ed6 /ros2-galactic.install | |
parent | 9cdfe77176956d945d5fdce7de2dd30f9136ebc8 (diff) | |
download | aur-9be4a4d8c4a75e1df1bcacdb11314b79763f914c.tar.gz |
galactic: 1st version
Diffstat (limited to 'ros2-galactic.install')
-rw-r--r-- | ros2-galactic.install | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ros2-galactic.install b/ros2-galactic.install new file mode 100644 index 000000000000..e57ab249713d --- /dev/null +++ b/ros2-galactic.install @@ -0,0 +1,33 @@ +pre_install() { + # Create required symlinks (see https://wiki.archlinux.org/index.php/ROS) + mkdir -p /usr/share/sip + ln -sf /usr/lib/python3.9/site-packages/PyQt5 /usr/share/sip/. + ln -sf /usr/lib/python3.9/site-packages/PyQt5/bindings/* /usr/share/sip/PyQt5/. +} + +post_install() { + printf " + \e[33m\e[1mIMPORTANT NOTE:\e[0m + You should add something like this to your ~/.bashrc file: + + export ROS_DOMAIN_ID=42 + source /opt/ros2/foxy/setup.bash + + This quick command will do it for you: + + printf \"\\\nexport ROS_DOMAIN_ID=42\\\nsource /opt/ros2/foxy/setup.bash\\\n\" >> ~/.bashrc + + Note 1: If you use zsh, replace '.bash' in the above lines with + '.zsh' and add the lines to ~/.zshrc . + + Note 2: This will slow down terminal startup for a few seconds on + cold start, and a fraction of a second for terminals that open later. + If you know a better transparent solution, you are welcome to edit + this. + \e[33m\e[1mEND OF IMPORTANT NOTE.\e[0m + " +} + +post_remove() { + printf "You may want to clean up .bashrc and/or .zshrc." +} |