void-packages/srcpkgs/ffmpegthumbnailer/template
2017-11-02 15:55:16 +01:00

31 lines
994 B
Bash

# Template file for 'ffmpegthumbnailer'
pkgname=ffmpegthumbnailer
version=2.2.0
revision=2
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"
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
}
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
}
}