From 3b18be1752c9fd9fa74eb1314ca97dd61e9ce912 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Sep 2011 23:14:38 +0000 Subject: Sat Sep 3 23:14:38 UTC 2011 --- extra/ffmpegthumbnailer/PKGBUILD | 12 +++++++++--- extra/ffmpegthumbnailer/ffmpegthumbnailer.desktop | 4 ++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 extra/ffmpegthumbnailer/ffmpegthumbnailer.desktop (limited to 'extra/ffmpegthumbnailer') diff --git a/extra/ffmpegthumbnailer/PKGBUILD b/extra/ffmpegthumbnailer/PKGBUILD index 8be79eb47..82a96c06a 100644 --- a/extra/ffmpegthumbnailer/PKGBUILD +++ b/extra/ffmpegthumbnailer/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: boromil@gmail.com pkgname=ffmpegthumbnailer -pkgver=2.0.6 +pkgver=2.0.7 pkgrel=1 pkgdesc="Lightweight video thumbnailer that can be used by file managers." url="http://code.google.com/p/ffmpegthumbnailer/" @@ -11,9 +11,11 @@ license=('GPL2') arch=('i686' 'x86_64') depends=('ffmpeg' 'libjpeg' 'libpng') optdepends=('gvfs: support for gio uris') -source=(http://ffmpegthumbnailer.googlecode.com/files/$pkgname-$pkgver.tar.gz) +source=(http://ffmpegthumbnailer.googlecode.com/files/$pkgname-$pkgver.tar.gz + ffmpegthumbnailer.desktop) options=(!libtool) -md5sums=('5003ceaadc1c5a1be1dbb34739a12bab') +sha1sums=('b8f5371aa995fefd1fb75e306e8cd76e8c9f3a73' + 'bdd3ae35a5c6f0e1f4b0c7926f72b3429b2eaa53') build() { cd "${srcdir}/${pkgname}-${pkgver}" @@ -25,6 +27,10 @@ build() { package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install + + # FS#24105: Generate thumbnails in nautilus + install -Dm644 ${srcdir}/ffmpegthumbnailer.desktop \ + ${pkgdir}/usr/share/thumbnailers/ffmpegthumbnailer.desktop } diff --git a/extra/ffmpegthumbnailer/ffmpegthumbnailer.desktop b/extra/ffmpegthumbnailer/ffmpegthumbnailer.desktop new file mode 100644 index 000000000..79203e5bc --- /dev/null +++ b/extra/ffmpegthumbnailer/ffmpegthumbnailer.desktop @@ -0,0 +1,4 @@ +[Thumbnailer Entry] +TryExec=ffmpegthumbnailer +Exec=ffmpegthumbnailer -s %s -i %u -o %o -c png -f -t 10 +MimeType=video/flv;video/webm;video/mkv;video/mp4;video/mpeg;video/avi;video/ogg;video/quicktime;video/x-avi;video/x-flv;video/x-mp4;video/x-mpeg;video/x-webm;video/x-mkv;application/x-extension-webm;video/x-matroska;video/x-ms-wmv;video/x-msvideo;video/x-msvideo/avi;video/x-theora/ogg;video/x-theora/ogv;video/x-ms-asf;video/x-m4v; -- cgit v1.2.3-54-g00ecf