Merge pull request #4903 from styrsven/ccextractor
New package: ccextractor-0.82
This commit is contained in:
commit
fff0f97358
|
@ -0,0 +1,35 @@
|
|||
# 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
|
||||
}
|
Loading…
Reference in New Issue