# Depends on : extra-cmake-modules kdoctools 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="tnut " contributors="Pierre B" name=ffmpegthumbs version=18.12.0 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/qt/plugins \ -DKDE_INSTALL_LIBDIR=lib .. make make DESTDIR=$PKG install } uptodate() { feed=https://github.com/KDE/$name/releases.atom exec="lynx -read_timeout=20 -dump -listonly -nonumbers $feed" ligne=1 # nombre de notification ? afficher $exec $feed | grep title | \ sed "s@@@" | \ sed "s@@@" | \ sed "s@v@@" | \ head -n $(($ligne+1 )) | \ tail -n $(($ligne)) }