Fortunately others have already found a solution .
Search AUR for microchip or mplab .
I'm writing a PKGBUILD to install Microchip's XC16 C Compiler. The software is distributed in a .run file, and my problem is that it's hardwired to create the /opt/microchip/xclm directory and installing there. The .run file ignores the --prefix argument.
I was wondering if there is a clever way of tricking the installer into unpacking itself into a directory of my choice, so that I can then install the files manually into a standard directory.
The file in question comes from https://www.microchip.com/mplabxc16linux
Many thanks for your time.
]]>