# Maintainer: Tércio Martins # Contributor: Hugo Courtial # Contributor: Luca Weiss pkgname=openfx-misc-git pkgver=Natron.2.5.0.r2.g5524c1ba pkgrel=1 arch=('x86_64') pkgdesc="Miscellaneous OpenFX plugins" url="https://github.com/NatronGitHub/openfx-misc" license=('GPL') depends=('libgl' 'python') makedepends=('git' 'openmp') optdepends=('natron-plugins-git: More presets for the Shadertoy plugin') _pkgname=${pkgname%-git} _url=${url%/${_pkgname}} conflicts=("${_pkgname}") source=("${_pkgname}::git+${url}" "openfx::git+${_url}/openfx" "openfx-supportext::git+${_url}/openfx-supportext") sha512sums=('SKIP' 'SKIP' 'SKIP') pkgver() { cd ${_pkgname} git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd ${_pkgname} git submodule init git config submodule.openfx.url ${srcdir}/openfx git config submodule.SupportExt.url ${srcdir}/openfx-supportext git -c protocol.file.allow=always submodule update } build() { cd "${srcdir}/${_pkgname}" make CONFIG=release \ OPENMP=1 } package() { cd "${srcdir}/${_pkgname}" mkdir -p "${pkgdir}/usr/OFX/Plugins" make install PLUGINPATH="${pkgdir}/usr/OFX/Plugins" \ CONFIG=release }