git » ffmpegthumbnailer.git » commit 7e66121

update to 2.0.7; FS#24105 generate thumbnails in nautilus

author Ronald van Haren
2011-09-02 16:48:38 UTC
committer Ronald van Haren
2011-09-02 16:48:38 UTC
parent b66ac71d3098943a4fdb15a9f7194d832d8d4631

update to 2.0.7; FS#24105 generate thumbnails in nautilus

PKGBUILD +9 -3
ffmpegthumbnailer.desktop +4 -0

diff --git a/PKGBUILD b/PKGBUILD
index 8be79eb..82a96c0 100644
--- a/PKGBUILD
+++ b/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/ffmpegthumbnailer.desktop b/ffmpegthumbnailer.desktop
new file mode 100644
index 0000000..79203e5
--- /dev/null
+++ b/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;