# Template file for 'ccextractor' pkgname=ccextractor version=0.86 revision=2 build_wrksrc="linux" build_style=gnu-configure configure_args="--enable-ocr --enable-hardsubx" hostmakedepends="automake pkg-config" makedepends="leptonica-devel tesseract-ocr-devel ffmpeg-devel" short_desc="Extract subtitles from video" maintainer="newbluemoon " license="GPL-2" homepage="http://www.ccextractor.org/doku.php" distfiles="https://github.com/CCExtractor/${pkgname}/archive/v${version}.tar.gz" checksum=0c24b00384244a2e58d63ad2ef1cb69b2e0824c7461f707d40e926d49136330a pre_configure() { sed -i -e "s/tesseract --version/tesseract-ocr --version/g" configure.ac ./autogen.sh } do_install() { vbin ccextractor for i in ../docs/*; do if [ $i = "../docs/gpl-2.0.txt" ]; then vlicense $i else vdoc "$i" fi done }