description="Lightweight video thumbnailer that can be used by file managers to create thumbnails for video files" 
url="https://github.com/dirkvdb/ffmpegthumbnailer/"

packager="spiky <spiky@nutyx.org>"
contributors="Fred, Greg, tnut"

makedepends=(ffmpeg libjpeg-turbo libpng)

PKGMK_KEEP_SOURCES="no"

name=ffmpegthumbnailer
version=2.2.2
release=4

source=(https://github.com/dirkvdb/$name/archive/$version.tar.gz)

build() {
cd $name-$version

mkdir -p build
cd build
cmake .. \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DENABLE_GIO=ON \
	-DENABLE_THUMBNAILER=ON
make
make DESTDIR=$PKG install
}
