void-packages/srcpkgs/ccextractor/template

39 lines
952 B
Bash

# Template file for 'ccextractor'
pkgname=ccextractor
version=0.85
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-full.${version}.zip"
checksum=557f6dcae751598fb2f9c5e98b5407ddd3f6eaca61b5769df881b8155149bae8
case "$XBPS_TARGET_MACHINE" in
aarch64*) broken="libpng missing png_init_filter_functions_neon" ;;
esac
do_build() {
cd ${wrksrc}/linux
make ${makejobs} CC=$CC LDFLAGS="$LDFLAGS -lm"
}
post_extract() {
sed -i -e 's/\(^LDFLAGS \)=\(.*$\)/\1+=\2/' \
-e 's/\(^CFLAGS \)=\(.*$\)/\1+=\2/' linux/Makefile
}
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
}