Merge pull request #4903 from styrsven/ccextractor

New package: ccextractor-0.82
This commit is contained in:
Michael Gehring 2016-10-07 07:25:39 +02:00 committed by GitHub
commit fff0f97358

View file

@ -0,0 +1,35 @@
# Template file for 'ccextractor'
pkgname=ccextractor
version=0.82
revision=1
wrksrc=${pkgname}.${version}
hostmakedepends="unzip"
makedepends="leptonica-devel tesseract-ocr-devel"
short_desc="Extract subtitles from video"
maintainer="Styrsven <sven.a.jonsson@bahnhof.se>"
license="GPL-2"
homepage="http://www.ccextractor.org/doku.php"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}.src.${version}.zip"
checksum=890e7786256c74c7e4850592784da027451dd7c3e3a353c9bad3bea5467b7b77
post_extract() {
sed -i -e 's/\(^LDFLAGS \)=\(.*$\)/\1+=\2/' \
-e 's/\(^CFLAGS \)=\(.*$\)/\1+=\2/' linux/Makefile
}
do_build() {
pushd linux
make CC=${CC}
popd
}
do_install() {
vbin linux/ccextractor
for i in docs/*; do
if [ $i = "docs/gpl-2.0.txt" ]; then
vlicense $i
else
vdoc $i
fi
done
}