# Maintainer: Gustavo Alvarez _plug=knlmeanscl pkgname=vapoursynth-plugin-${_plug} pkgver=1.1.1 pkgrel=2 pkgdesc="Plugin for Vapoursynth: ${_plug}" arch=('i686' 'x86_64') url='http://forum.doom9.org/showthread.php?t=171379' license=('GPL') depends=('vapoursynth' 'ocl-icd' ) makedepends=('git' 'opencl-headers' ) source=("${_plug}-${pkgver}.tar.gz::https://github.com/Khanattila/KNLMeansCL/archive/v${pkgver}.tar.gz") sha256sums=('9e0df80c64cc48a522f37e3f6e4edafe8eba22c0f78bcc8f54fbfbe9e30aa479') build() { cd "KNLMeansCL-${pkgver}" ./configure \ --install=/usr/lib/vapoursynth \ --extra-cxxflags="${CXXFLAGS} ${CPPFLAGS}" \ --extra-ldflags="${LDFLAGS//--as-needed,/}" make } package(){ make -C "KNLMeansCL-${pkgver}" DESTDIR="${pkgdir}" install }