diff --git a/packages/tsmuxer/build.sh b/packages/tsmuxer/build.sh new file mode 100644 index 000000000..dca12fa5b --- /dev/null +++ b/packages/tsmuxer/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/justdan96/tsMuxer +TERMUX_PKG_DESCRIPTION="A transport stream muxer for remuxing/muxing elementary streams" +TERMUX_PKG_LICENSE="Apache-2.0" +TERMUX_PKG_MAINTAINER="@termux" +_VERSION_REAL=nightly-2021-12-05-02-09-30 +TERMUX_PKG_VERSION=$(cut -d- -f2,3,4 <<< "$_VERSION_REAL" | tr '-' '.') +TERMUX_PKG_SRCURL=https://github.com/justdan96/tsMuxer/archive/refs/tags/${_VERSION_REAL}.tar.gz +TERMUX_PKG_SHA256=676f7741fb897ec53a975fcb6a0c4d5466d680a12e82b54b39cbf48d91bb14fb +TERMUX_PKG_DEPENDS="freetype, libc++, zlib" diff --git a/packages/tsmuxer/tsMuxer-osdep-textSubtitlesRenderFT.cpp.patch b/packages/tsmuxer/tsMuxer-osdep-textSubtitlesRenderFT.cpp.patch new file mode 100644 index 000000000..ac054e6ac --- /dev/null +++ b/packages/tsmuxer/tsMuxer-osdep-textSubtitlesRenderFT.cpp.patch @@ -0,0 +1,11 @@ +--- a/tsMuxer/osdep/textSubtitlesRenderFT.cpp ++++ b/tsMuxer/osdep/textSubtitlesRenderFT.cpp +@@ -19,7 +19,7 @@ + #if defined(_WIN32) + const static char FONT_ROOT[] = "c:/WINDOWS/Fonts"; // for debug only + #elif __linux__ == 1 +-const static char FONT_ROOT[] = "/usr/share/fonts/"; ++const static char FONT_ROOT[] = "@TERMUX_PREFIX@/share/fonts/"; + #elif defined(__APPLE__) && defined(__MACH__) + const static char FONT_ROOT[] = "/System/Library/Fonts/"; + #endif