void-packages/srcpkgs/ccextractor/template

29 lines
1.0 KiB
Bash

# Template file for 'ccextractor'
pkgname=ccextractor
version=0.93
revision=2
build_wrksrc="linux"
build_style=gnu-configure
configure_args="--enable-ocr --enable-hardsubx"
hostmakedepends="automake pkg-config tesseract-ocr-devel"
makedepends="leptonica-devel tesseract-ocr-devel ffmpeg-devel"
short_desc="Extract subtitles from video streams"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-2.0-or-later"
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=0e66d3e360db1b02a88271af11313ca4c9bbda1b03728e264a44c4c9f77192e3
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/tesseract -DPNG_POWERPC_VSX_OPT=0"
pre_configure() {
vsed -i configure.ac \
-e "s/tesseract --version/tesseract-ocr --version/g" \
-e "s/\[lept\]/[leptonica]/"
./autogen.sh
}
post_install() {
vinstall ../docs/ccextractor.cnf.sample 644 usr/share/examples/ccextractor
}