summaryrefslogtreecommitdiff
path: root/multimedia/ccextractor
diff options
context:
space:
mode:
authorM.Dinslage <daedra1980@gmail.com>2019-11-02 01:06:55 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-02 01:06:55 +0700
commitff09a30c9ca5ec8886b05b5c08bf11a482f9d225 (patch)
tree346766d57b2374f4f2a83ce89d9bb033a1d89b24 /multimedia/ccextractor
parent190e004a755b0f581ddef7651ec61131c1a60796 (diff)
downloadslackbuilds-ff09a30c9ca5ec8886b05b5c08bf11a482f9d225.tar.gz
multimedia/ccextractor: Added (captions extractor for MPEG files).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/ccextractor')
-rw-r--r--multimedia/ccextractor/README12
-rw-r--r--multimedia/ccextractor/ccextractor.SlackBuild110
-rw-r--r--multimedia/ccextractor/ccextractor.info10
-rw-r--r--multimedia/ccextractor/slack-desc19
4 files changed, 151 insertions, 0 deletions
diff --git a/multimedia/ccextractor/README b/multimedia/ccextractor/README
new file mode 100644
index 0000000000..6dccda83a4
--- /dev/null
+++ b/multimedia/ccextractor/README
@@ -0,0 +1,12 @@
+CCExtractor is a tool that analyzes video files and produces
+independent subtitle files from the closed captions data. CCExtractor
+is portable, small, and very fast. Notable features include the
+ability to extract subtitles in real-time, translate subtitles,
+extract closed captions from DVDs, and convert closed captions
+to subtitles.
+
+By default only build the CLI version of ccextractor. If you would
+like to also build the GUI version, then install glfw3 available
+here at SBo and run the script like so
+
+GUI=yes ./ccextractor.SlackBuild
diff --git a/multimedia/ccextractor/ccextractor.SlackBuild b/multimedia/ccextractor/ccextractor.SlackBuild
new file mode 100644
index 0000000000..78018a2b3b
--- /dev/null
+++ b/multimedia/ccextractor/ccextractor.SlackBuild
@@ -0,0 +1,110 @@
+#!/bin/sh
+
+# Slackware build script for ccextractor
+
+# Copyright 2019 Matt Dinslage, Springfield, MO
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=ccextractor
+VERSION=${VERSION:-0.88}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+# Pass GUI=yes if you want to build gui support
+GUI=${GUI:-"no"}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+if [ "${GUI:-yes}" = "yes" ]; then
+ gui="--with-gui"
+else
+ gui=""
+fi
+
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION/linux
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./autogen.sh
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-static=no \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ $gui \
+ --enable-ocr \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ../LICENSE.txt ../README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/multimedia/ccextractor/ccextractor.info b/multimedia/ccextractor/ccextractor.info
new file mode 100644
index 0000000000..2e5ee2b47c
--- /dev/null
+++ b/multimedia/ccextractor/ccextractor.info
@@ -0,0 +1,10 @@
+PRGNAM="ccextractor"
+VERSION="0.88"
+HOMEPAGE="https://www.ccextractor.org/"
+DOWNLOAD="https://github.com/CCExtractor/ccextractor/archive/v0.88/ccextractor-0.88.tar.gz"
+MD5SUM="914f8704251ce24dcbb756590cf39955"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="tesseract"
+MAINTAINER="M.Dinslage"
+EMAIL="daedra1980@gmail.com"
diff --git a/multimedia/ccextractor/slack-desc b/multimedia/ccextractor/slack-desc
new file mode 100644
index 0000000000..822e77b47e
--- /dev/null
+++ b/multimedia/ccextractor/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+ccextractor: ccextractor (A fast closed captions extractor for MPEG files)
+ccextractor:
+ccextractor: CCExtractor is a tool that analyzes video files and produces
+ccextractor: independent subtitle files from the closed captions data. CCExtractor
+ccextractor: is portable, small, and very fast.
+ccextractor:
+ccextractor:
+ccextractor:
+ccextractor:
+ccextractor:
+ccextractor: