new package: vobsub2srt
This commit is contained in:
parent
ce99a04eab
commit
d7b65c2c97
25
packages/vobsub2srt/CMakeLists.txt.patch
Normal file
25
packages/vobsub2srt/CMakeLists.txt.patch
Normal file
@ -0,0 +1,25 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -53,10 +53,10 @@
|
||||
include(CheckCXXSourceCompiles)
|
||||
include(CheckCXXSourceRuns)
|
||||
|
||||
-set(CMAKE_C_FLAGS "-std=gnu99")
|
||||
-set(CMAKE_CXX_FLAGS "-ansi -pedantic -Wall -Wextra -Wno-long-long")
|
||||
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
|
||||
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-long-long")
|
||||
|
||||
-set(CMAKE_CXX_FLAGS_RELEASE "-O3 -mtune=native -march=native -DNDEBUG -fomit-frame-pointer -ffast-math") # TODO -Ofast GCC 4.6
|
||||
+set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG") # TODO -Ofast GCC 4.6
|
||||
set(CMAKE_C_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g3 -DDEBUG")
|
||||
set(CMAKE_C_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
|
||||
@@ -114,7 +114,7 @@
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_QUIET
|
||||
)
|
||||
-if(EXECUTE_RESULT)
|
||||
+if(TRUE)
|
||||
message(STATUS "dpkg not found: No package generation.")
|
||||
else()
|
||||
message(STATUS "Debian architecture: ${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
|
25
packages/vobsub2srt/build.sh
Normal file
25
packages/vobsub2srt/build.sh
Normal file
@ -0,0 +1,25 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/ruediger/VobSub2SRT
|
||||
TERMUX_PKG_DESCRIPTION="A simple command line program to convert .idx / .sub subtitles into .srt text subtitles by using OCR"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0, GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
_COMMIT=0ba6e25e078a040195d7295e860cc9064bef7c2c
|
||||
TERMUX_PKG_VERSION=2017.12.18
|
||||
TERMUX_PKG_SRCURL=https://github.com/ruediger/VobSub2SRT.git
|
||||
TERMUX_PKG_GIT_BRANCH=master
|
||||
TERMUX_PKG_DEPENDS="libc++, tesseract"
|
||||
TERMUX_PKG_FORCE_CMAKE=true
|
||||
|
||||
# Due to dependency on tesseract:
|
||||
TERMUX_PKG_BLACKLISTED_ARCHES="i686"
|
||||
|
||||
termux_step_post_get_source() {
|
||||
git fetch --unshallow
|
||||
git checkout $_COMMIT
|
||||
|
||||
local version="$(git log -1 --format=%cs | sed 's/-/./g')"
|
||||
if [ "$version" != "$TERMUX_PKG_VERSION" ]; then
|
||||
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\""
|
||||
echo " is different from what is expected to be: \"$version\""
|
||||
return 1
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user