# Maintainer: Gustavo Alvarez _plug=fmtconv pkgname=vapoursynth-plugin-${_plug} pkgver=r20 pkgrel=1 pkgdesc="Plugin for Vapoursynth: ${_plug}" arch=('i686' 'x86_64') url='http://forum.doom9.org/showthread.php?t=166504' license=('custom:WTFPL') depends=('vapoursynth') source=("http://ldesoras.free.fr/src/vs/${_plug}-${pkgver}.zip") sha1sums=('83014b6b21afc8198221de9c0461a9dc0e5e1ebb') prepare() { rm -fr src/VapourSynth.h cd build/unix autoreconf --verbose --install --force } build() { cd build/unix CPPFLAGS+=" $(pkg-config --cflags vapoursynth)" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib/vapoursynth make } package(){ make -C build/unix DESTDIR="${pkgdir}" install (cd doc; for i in *.{html,png,css}; do install -Dm644 "${i}" "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/${i}"; done) install -Dm644 doc/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.txt" }