# Depends on : kf5-extra-cmake-modules kf5-kdoctools kf5-kio ffmpeg

description="FFmpeg-based thumbnail creator for video files"
url="https://projects.kde.org/projects/kde/applications/FFmpeg-based thumbnail creator for video files"
packager="pierre at nutyx dot org"
name=ffmpegthumbs
version=16.08.1
release=2

source=(http://download.kde.org/stable/applications/$version/src/$name-$version.tar.xz)

build() {
cd $name-$version

mkdir build
cd build

export PKG_CONFIG_PATH="/usr/lib/ffmpeg2.8/pkgconfig"  

cmake -DCMAKE_BUILD_TYPE=Release  \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DSYSCONF_INSTALL_DIR=/etc  \
      -DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins \
      -DLIB_INSTALL_DIR=lib ..

make
make DESTDIR=$PKG install
}
