diff --git a/packages/gst-plugins-base/build.sh b/packages/gst-plugins-base/build.sh index b993a6d2a..bb5f5083c 100644 --- a/packages/gst-plugins-base/build.sh +++ b/packages/gst-plugins-base/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://gstreamer.freedesktop.org/ TERMUX_PKG_DESCRIPTION="GStreamer base plug-ins" TERMUX_PKG_LICENSE="LGPL-2.0" TERMUX_PKG_VERSION=1.14.4 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=ca6139490e48863e7706d870ff4e8ac9f417b56f3b9e4b3ce490c13b09a77461 TERMUX_PKG_SRCURL=https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_DEPENDS="gstreamer, libjpeg-turbo, libopus, libpng, libvorbis" @@ -10,34 +11,3 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --disable-examples --disable-pango " - -termux_step_post_make_install() { - for BINARY in gst-play-1.0 gst-discoverer-1.0 gst-device-monitor-1.0 - do - echo $BINARY - local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/$BINARY - local BIN_BINARY=$TERMUX_PREFIX/bin/$BINARY - local LIB_PATH=/system/lib - local VENDOR_LIB_PATH=/system/vendor/lib - if [ ! "$TERMUX_ARCH_BITS" == "32" ] - then - LIB_PATH+=64 - VENDOR_LIB_PATH+=64 - fi - - mv $BIN_BINARY $LIBEXEC_BINARY - local FFMPEG_LIBS="" lib - for lib in avcodec avfilter avformat avutil postproc swresample swscale; do - if [ -n "$FFMPEG_LIBS" ]; then FFMPEG_LIBS+=":"; fi - FFMPEG_LIBS+="$TERMUX_PREFIX/lib/lib${lib}.so" - done - - cat << EOF > $BIN_BINARY -#!/bin/sh -export LD_PRELOAD=$FFMPEG_LIBS -# Avoid linker errors due to libOpenSLES.so: -LD_LIBRARY_PATH=$LIB_PATH:$VENDOR_LIB_PATH:$TERMUX_PREFIX/lib exec $LIBEXEC_BINARY "\$@" -EOF - chmod +x $BIN_BINARY - done -} diff --git a/packages/gstreamer/build.sh b/packages/gstreamer/build.sh index 9854af999..c48b0f94b 100644 --- a/packages/gstreamer/build.sh +++ b/packages/gstreamer/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://gstreamer.freedesktop.org/ TERMUX_PKG_DESCRIPTION="Open source multimedia framework" TERMUX_PKG_LICENSE="LGPL-2.0" TERMUX_PKG_VERSION=1.14.4 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=f94f6696c5f05a3b3a9183e39c5f5c0b779f75a04c0efa497e7920afa985ffc7 TERMUX_PKG_SRCURL=https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_DEPENDS="glib" @@ -16,27 +17,3 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" GLIB_GENMARSHAL=/usr/bin/glib-genmarshal GLIB_MKENUMS=/usr/bin/glib-mkenums " - -termux_step_post_make_install() { - for BINARY in gst-inspect-1.0 gst-stats-1.0 gst-typefind-1.0 gst-launch-1.0 - do - echo $BINARY - local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/$BINARY - local BIN_BINARY=$TERMUX_PREFIX/bin/$BINARY - local LIB_PATH=/system/lib - if [ ! "$TERMUX_ARCH_BITS" == "32" ] - then - LIB_PATH+=64 - fi - - mv $BIN_BINARY $LIBEXEC_BINARY - - cat << EOF > $BIN_BINARY -#!/bin/sh - -# Avoid linker errors due to libOpenSLES.so: -LD_LIBRARY_PATH=/system/lib64/:$TERMUX_PREFIX/lib exec $LIBEXEC_BINARY "\$@" -EOF - chmod +x $BIN_BINARY - done -}