Files
MSYS2-packages/ccache/ccache.install
Renato Silva ec5c433ede ccache: Some improvements.
* Add support for MINGW compilers.
* Fix ccache option for makepkg-mingw.
* Replace wrapper scripts with symlinks.
* Update to 3.2.5.
2016-05-14 15:21:19 -03:00

11 lines
338 B
Plaintext

post_install() {
mkdir -p /usr/lib/ccache/bin
for compiler in c++ cc cpp gcc g++ {i686,x86_64}-{pc-msys,w64-mingw32}-{g++,c++,gcc}; do
MSYS='winsymlinks:lnk' ln -sf /usr/bin/ccache /usr/lib/ccache/bin/${compiler}
done
}
pre_remove() { rm -rf /usr/lib/ccache; }
pre_upgrade() { pre_remove; }
post_upgrade() { post_install; }