void-packages/srcpkgs/ffmpegthumbnailer/template

37 lines
1.1 KiB
Bash

# Template file for 'ffmpegthumbnailer'
pkgname=ffmpegthumbnailer
version=2.2.0
revision=5
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libpng-devel libjpeg-turbo-devel ffmpeg-devel"
depends="ffmpeg"
short_desc="Lightweight video thumbnailer"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.0-or-later"
homepage="https://github.com/dirkvdb/${pkgname}"
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.bz2"
checksum=e5c31299d064968198cd378f7488e52cd5e738fac998eea780bc77d7f32238c2
CXXFLAGS="-D_GLIBCXX_USE_C99_STDIO=1 -D_GLIBCXX_USE_C99_STDLIB=1"
post_configure() {
# Patch wrong man1 path
sed -e 's;DESTINATION "/usr/man/man1";DESTINATION "/usr/share/man/man1";' \
-i ${wrksrc}/build/cmake_install.cmake
}
post_install() {
vinstall dist/ffmpegthumbnailer.thumbnailer 644 usr/share/thumbnailers
}
ffmpegthumbnailer-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/include
vmove usr/lib/pkgconfig
}
}