void-packages/srcpkgs/ccextractor/template

26 lines
883 B
Bash

# Template file for 'ccextractor'
pkgname=ccextractor
version=0.87
revision=1
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 streams"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-2"
homepage="https://www.ccextractor.org/"
changelog="https://raw.githubusercontent.com/CCExtractor/ccextractor/master/docs/CHANGES.TXT"
distfiles="https://github.com/CCExtractor/${pkgname}/archive/v${version}.tar.gz"
checksum=10c3d88fba531aa6f5f6937e8eccc4df2ac96abaa4d77cb4a1b1349a8b94346f
pre_configure() {
sed -i -e "s/tesseract --version/tesseract-ocr --version/g" configure.ac
./autogen.sh
}
post_install() {
vinstall ../docs/ccextractor.cnf.sample 644 usr/share/examples/ccextractor
}