makedepends=(extra-cmake-modules kdoctools kconfig kio ffmpeg8 taglib)

description="FFmpeg-based thumbnail creator for video files"
url="https://projects.kde.org/projects/kde/applications/FFmpeg-based thumbnail creator for video files"

packager="Great-OS Team"
maintainer="Great-OS Team"

set=(plasma kde6 plasma-gear-dev)

name=ffmpegthumbs
version=26.04.1
release=1

source=(https://download.kde.org/stable/release-service/$version/src/$name-$version.tar.xz)

build() {

  mkdir build && cd build

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

  cmake -DCMAKE_BUILD_TYPE=Release  \
        -DQT_MAJOR_VERSION=6        \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DSYSCONF_INSTALL_DIR=/etc  \
        -DPLUGIN_INSTALL_DIR=/usr/lib/qt/plugins \
        -DKDE_INSTALL_LIBDIR=lib \
        ../$name-$version

  make
  make DESTDIR=$PKG install
}
