# Contributor: Stuart Cardall <developer@it-offshore.co.uk> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> pkgname=ffmpegthumbnailer pkgver=2.2.0 pkgrel=0 pkgdesc="Lightweight video thumbnailer that can be used by file managers" url="https://github.com/dirkvdb/ffmpegthumbnailer" arch="all" license="GPLv2" makedepends="ffmpeg-dev libpng-dev libjpeg-turbo-dev cmake" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.bz2::https://github.com/dirkvdb/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.bz2" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DENABLE_GIO=ON \ -DENABLE_THUMBNAILER=ON . || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 if [ -d "$pkgdir/usr/lib64" ]; then mv "$pkgdir"/usr/lib64 "$pkgdir"/usr/lib fi } md5sums="ed3754b3b8b9af93a93c490e17def0d0 ffmpegthumbnailer-2.2.0.tar.bz2" sha256sums="e5c31299d064968198cd378f7488e52cd5e738fac998eea780bc77d7f32238c2 ffmpegthumbnailer-2.2.0.tar.bz2" sha512sums="526d15b2c754fcb1415e69fb54cb6e7d0102b6d73a32a7e8528df81e32633dfe3786898984fdb988c93daee7218956c75c096ef657c9b3a42399d2d1d27c7bbf ffmpegthumbnailer-2.2.0.tar.bz2"