void-packages/srcpkgs/ccextractor/template

35 lines
806 B
Bash

# Template file for 'ccextractor'
pkgname=ccextractor
version=0.83
revision=1
wrksrc=${pkgname}
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=6ed32ba8424dc22fb3cca77776f2ee3137f5198cc2909711cab22fcc7cee470a
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
}