summaryrefslogtreecommitdiff
path: root/extra/ffmpegthumbnailer/PKGBUILD
blob: eaea34432c7812067b420dab4101b5466828af3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $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=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"
        "ffmpegthumbnailer-2.0.8-memcpy.patch")
options=('!libtool')
sha1sums=('2c54ca16efd953f46547e22799cfc40bd9c24533'
          'c23ef173f98c928fcacacd6e6060dab2e56f1239')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -Np0 -i "${srcdir}/ffmpegthumbnailer-2.0.8-memcpy.patch"
}
build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr --enable-gio --enable-thumbnailer

  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}