sdl2: Create symlinks for shared lib

Some apps assume `libSDL2-2.0.so.0`.
This commit is contained in:
Tee KOBAYASHI 2022-03-17 23:20:30 +09:00 committed by Yaksh Bariya
parent 4b6018685b
commit 3a603f2f3d
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -56,6 +56,12 @@ termux_step_pre_configure() {
-e 's/\([^A-Za-z0-9_]__ANDROID\)__$/\1_NO_TERMUX__/g'
}
termux_step_post_make_install() {
ln -sf libSDL2-2.0.so $TERMUX_PREFIX/lib/libSDL2.so
termux_step_post_massage() {
cd ${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib || exit 1
if [ ! -e "./libSDL2.so" ]; then
ln -sf libSDL2-2.0.so libSDL2.so
fi
if [ ! -e "./libSDL2-2.0.so.0" ]; then
ln -sf libSDL2-2.0.so libSDL2-2.0.so.0
fi
}