rename executables
@@ -5,3 +5,11 @@ mkdir build
cmake -B build -S . ${CMAKE_ARGS} -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
cmake --install build
+
+## from https://github.com/archlinux/svntogit-community/blob/packages/mbedtls/trunk/PKGBUILD
+# rename generic utils
+ local _prog _baseprog
+ for _prog in "$PREFIX"/usr/bin/*; do
+ _baseprog=$(basename "$_prog")
+ mv -v "$_prog" "${_prog//$_baseprog/mbedtls_$_baseprog}"
+ done
