summaryrefslogtreecommitdiff
path: root/extra/ffmpegthumbnailer
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-07 00:36:35 -0700
committerroot <root@rshg054.dnsready.net>2013-05-07 00:36:35 -0700
commitda0a0d88caa1bf934ebf314ef86e15928dbb027b (patch)
treeb7c57ac9667de10c72390e0d81654fffbe47c42d /extra/ffmpegthumbnailer
parentffb692bf2696e7ebedd19bcd55ba253e21cb732d (diff)
Tue May 7 00:36:35 PDT 2013
Diffstat (limited to 'extra/ffmpegthumbnailer')
-rw-r--r--extra/ffmpegthumbnailer/PKGBUILD15
-rw-r--r--extra/ffmpegthumbnailer/ffmpegthumbnailer-2.0.8-memcpy.patch13
2 files changed, 24 insertions, 4 deletions
diff --git a/extra/ffmpegthumbnailer/PKGBUILD b/extra/ffmpegthumbnailer/PKGBUILD
index 211b321ce..eaea34432 100644
--- a/extra/ffmpegthumbnailer/PKGBUILD
+++ b/extra/ffmpegthumbnailer/PKGBUILD
@@ -1,20 +1,27 @@
-# $Id: PKGBUILD 23110 2010-08-06 11:01:51Z rvanharen $
+# $Id: PKGBUILD 184375 2013-05-06 19:37:03Z foutrelis $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: boromil@gmail.com
pkgname=ffmpegthumbnailer
pkgver=2.0.8
-pkgrel=2
+pkgrel=3
pkgdesc="Lightweight video thumbnailer that can be used by file managers."
url="http://code.google.com/p/ffmpegthumbnailer/"
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-2.0.8-memcpy.patch")
options=('!libtool')
-sha1sums=('2c54ca16efd953f46547e22799cfc40bd9c24533')
+sha1sums=('2c54ca16efd953f46547e22799cfc40bd9c24533'
+ 'c23ef173f98c928fcacacd6e6060dab2e56f1239')
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -Np0 -i "${srcdir}/ffmpegthumbnailer-2.0.8-memcpy.patch"
+}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
diff --git a/extra/ffmpegthumbnailer/ffmpegthumbnailer-2.0.8-memcpy.patch b/extra/ffmpegthumbnailer/ffmpegthumbnailer-2.0.8-memcpy.patch
new file mode 100644
index 000000000..5b9c68613
--- /dev/null
+++ b/extra/ffmpegthumbnailer/ffmpegthumbnailer-2.0.8-memcpy.patch
@@ -0,0 +1,13 @@
+libffmpegthumbnailer/pngwriter.cpp: In function 'void ffmpegthumbnailer::writeDataCallback(png_structp, png_bytep, png_size_t)':
+libffmpegthumbnailer/pngwriter.cpp:111:52: error: 'memcpy' was not declared in this scope
+
+--- libffmpegthumbnailer/pngwriter.cpp
++++ libffmpegthumbnailer/pngwriter.cpp
+@@ -17,6 +17,7 @@
+ #include "pngwriter.h"
+ #include <stdexcept>
+ #include <cassert>
++#include <cstring>
+
+ using namespace std;
+