mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-10 04:43:32 +00:00
fix(x11/{sdl2,sdl2-compat}): create libSDL2.so symbolic link during termux_step_post_make_install(), not termux_step_post_massage()
- `termux_step_post_massage()` operates on `$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX`, not `$TERMUX_PREFIX` directly, so previously, `$TERMUX_PREFIX/lib/libSDL2.so` would fail to exist during the use of `build-package.sh` **without `-I`** on reverse dependencies of `sdl2`. - The error this fixes in reverse dependencies looks like this: ``` Hint: ERROR: sdl2 requested but not found ```
This commit is contained in:
@@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Simple DirectMedia Layer (SDL) sdl2-compat"
|
||||
TERMUX_PKG_LICENSE="ZLIB"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="2.32.56"
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://github.com/libsdl-org/sdl2-compat/releases/download/release-${TERMUX_PKG_VERSION}/sdl2-compat-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=27e845b1b7dc0a91a85f1a1f18892ed205adb38caf767741eb258008d8264de0
|
||||
TERMUX_PKG_DEPENDS="sdl3"
|
||||
@@ -27,11 +28,8 @@ termux_step_pre_configure() {
|
||||
diff -uNr "${TERMUX_PKG_TMPDIR}"/{a,b} --color || :
|
||||
}
|
||||
|
||||
termux_step_post_massage() {
|
||||
termux_step_post_make_install() {
|
||||
# ld(1)ing with `-lSDL2` won't work without this:
|
||||
# https://github.com/termux/x11-packages/issues/633
|
||||
cd ${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib || exit 1
|
||||
if [ ! -e "./libSDL2.so" ]; then
|
||||
ln -sf libSDL2-2.0.so libSDL2.so
|
||||
fi
|
||||
ln -sf libSDL2-2.0.so ${TERMUX_PREFIX}/lib/libSDL2.so
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A library for portable low-level access to a video frame
|
||||
TERMUX_PKG_LICENSE="ZLIB"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="2.32.6"
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://www.libsdl.org/release/SDL2-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=6a7a40d6c2e00016791815e1a9f4042809210bdf10cc78d2c75b45c4f52f93ad
|
||||
TERMUX_PKG_DEPENDS="libdecor, libiconv, libwayland, libx11, libxcursor, libxext, libxfixes, libxi, libxkbcommon, libxrandr, libxss, pulseaudio"
|
||||
@@ -71,11 +72,8 @@ termux_step_pre_configure() {
|
||||
termux_setup_wayland_cross_pkg_config_wrapper
|
||||
}
|
||||
|
||||
termux_step_post_massage() {
|
||||
termux_step_post_make_install() {
|
||||
# ld(1)ing with `-lSDL2` won't work without this:
|
||||
# https://github.com/termux/x11-packages/issues/633
|
||||
cd ${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib || exit 1
|
||||
if [ ! -e "./libSDL2.so" ]; then
|
||||
ln -sf libSDL2-2.0.so libSDL2.so
|
||||
fi
|
||||
ln -sf libSDL2-2.0.so ${TERMUX_PREFIX}/lib/libSDL2.so
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user