#!/bin/sh

ver_old=$2

if [ "$(apk version -t "$ver_old" '14.0.6-r10')" = '<' ]; then
	# in 14.0.6-r10 we flipped the symlink/target dirs for include/cmake
	# so we have to delete the symlink to allow apk to replace them..
	# and only after an apk fix :/

	# include
	rm /usr/lib/llvm14/include

	# cmake
	rm /usr/lib/llvm14/lib/cmake/llvm
fi

exit 0
