# Maintainer: Gustavo Alvarez _plug=focus pkgname=vapoursynth-plugin-${_plug}-git pkgver=r4.0.g28efbb1 pkgrel=1 pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)" arch=('x86_64') url='https://forum.doom9.org/showthread.php?p=1777684#post1777684' license=('GPLv2') depends=('vapoursynth') makedepends=('git') provides=("vapoursynth-plugin-${_plug}") conflicts=("vapoursynth-plugin-${_plug}") source=("${_plug}::git+https://github.com/IFeelBloated/vapoursynth-focus") sha256sums=('SKIP') pkgver() { cd "${_plug}" echo "$(git describe --long --tags | tr - .)" } prepare() { cd "${_plug}" rm -fr VapourSynth.h echo "all: g++ -c -fPIC ${CXXFLAGS} ${CPPFLAGS} -I. $(pkg-config --cflags vapoursynth) -o EntryPoint.o EntryPoint.cpp g++ -c -fPIC ${CXXFLAGS} ${CPPFLAGS} -I. $(pkg-config --cflags vapoursynth) -o SpatialSoften.o SpatialSoften.cpp g++ -c -fPIC ${CXXFLAGS} ${CPPFLAGS} -I. $(pkg-config --cflags vapoursynth) -o TemporalSoften.o TemporalSoften.cpp g++ -shared -L. -fPIC ${LDFLAGS} -o libvs${_plug}.so EntryPoint.o SpatialSoften.o TemporalSoften.o"> Makefile } build() { make -C "${_plug}" } package(){ cd "${_plug}" install -Dm775 "libvs${_plug}.so" "${pkgdir}/usr/lib/vapoursynth/libvs${_plug}.so" }