diff options
-rw-r--r-- | g++.pkg.in/postinst | 8 | ||||
-rw-r--r-- | g++.pkg.in/prerm | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/g++.pkg.in/postinst b/g++.pkg.in/postinst new file mode 100644 index 0000000..308d177 --- /dev/null +++ b/g++.pkg.in/postinst @@ -0,0 +1,8 @@ +#! /bin/sh + +if [ "x${1}" = 'xconfigure' ]; then + if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then + ln -sf @PKG_TARGET_ARCH@-g++ /usr/bin/g++ + update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 20 + fi +fi diff --git a/g++.pkg.in/prerm b/g++.pkg.in/prerm new file mode 100644 index 0000000..09bd436 --- /dev/null +++ b/g++.pkg.in/prerm @@ -0,0 +1,8 @@ +#! /bin/sh + +if [ "${1}" = remove ]; then + if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then + rm -f /usr/bin/g++ + update-alternatives --remove c++ /usr/bin/g++ + fi +fi |