void-packages/srcpkgs/ccextractor/template

36 lines
818 B
Bash

# 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
}