diff --git a/x11-packages/sdl2-compat/build.sh b/x11-packages/sdl2-compat/build.sh index 91058cce2a..ba0542d9cd 100644 --- a/x11-packages/sdl2-compat/build.sh +++ b/x11-packages/sdl2-compat/build.sh @@ -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 } diff --git a/x11-packages/sdl2/build.sh b/x11-packages/sdl2/build.sh index 00cb84ba31..1567fa36a5 100644 --- a/x11-packages/sdl2/build.sh +++ b/x11-packages/sdl2/build.sh @@ -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 }