# Maintainer: Tércio Martins pkgname=openfx-gmic-git pkgver=Natron.2.4.3.r0.g100d960 pkgrel=1 arch=('x86_64') pkgdesc="OpenFX wrapper for the G'MIC framework" url="https://github.com/NatronGitHub/openfx-gmic" license=('custom:CeCILL-C' 'custom:CeCILLv2') depends=('fftw' 'libgl' 'libpng') makedepends=('git' 'openmp') _pkgname=${pkgname%-git} _url=${url%/${_pkgname}} conflicts=("${_pkgname}") provides=("${_pkgname}") source=("${_pkgname}::git+${url}" "openfx::git+${_url}/openfx") sha512sums=('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 submodule update } build() { cd ${_pkgname} make CONFIG=release \ OPENMP=1 } package() { cd ${_pkgname} install -d "${pkgdir}/usr/OFX/Plugins" make install PLUGINPATH="${pkgdir}/usr/OFX/Plugins" \ CONFIG=release mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" for license_file in COPYING Licence_CeCILL-C_V1-en.txt Licence_CeCILL_V2-en.txt; do install -Dm644 $license_file \ "${pkgdir}/usr/share/licenses/${pkgname}/" done }