blob: f1197d85c4132a063ba9eb772b41e055ef2d0167 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
# Contributor: Hugo Courtial <hugo [at] courtial [not colon] me>
# Contributor: Luca Weiss <luca (at) z3ntu (dot) xyz>
pkgname=openfx-arena-git
pkgver=Natron.2.4.3.r6.g2e56d77
pkgrel=1
arch=('x86_64')
pkgdesc="Extra OpenFX plugins for Natron"
url="https://github.com/NatronGitHub/openfx-arena"
license=('GPL')
depends=('libcdr' 'libgl' 'libmagick' 'librsvg' 'libxt' 'libzip' 'poppler-glib' 'sox')
makedepends=('git' 'jbigkit' 'opencolorio1' 'openmp' 'pango')
_pkgname=${pkgname%-git}
_url=${url%/${_pkgname}}
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("${_pkgname}::git+${url}"
"openfx::git+${_url}/openfx"
"openfx-io::git+${_url}/openfx-io"
"lodepng::git+https://github.com/lvandeve/lodepng"
"openfx-supportext::git+${_url}/openfx-supportext"
"SequenceParsing::git+${_url}/SequenceParsing"
"tinydir::git+${_url}/tinydir")
sha512sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'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.OpenFX-IO.url ${srcdir}/openfx-io
git config submodule.SupportExt.url ${srcdir}/openfx-supportext
git config submodule.lodepng.url ${srcdir}/lodepng
git submodule update
cd OpenFX-IO
git submodule init
git config submodule.openfx.url ${srcdir}/openfx
git config submodule.SupportExt.url ${srcdir}/openfx-supportext
git config submodule.IOSupport/SequenceParsing.url ${srcdir}/SequenceParsing
git submodule update
cd IOSupport/SequenceParsing
git submodule init
git config submodule.tinydir.url ${srcdir}/tinydir
git submodule update
cd ../../../
# Change OpenColorIO library references to the version of "opencolorio1" package
find OpenFX-IO/IOSupport/ -name GenericOCIO.* \
-exec sed -i 's|include <OpenColorIO/|include <OpenColorIO1/|' {} \;
# Solve a problem in the linking of the "Extra" plugins,
# caused by a misconfiguration of pkgconfig in the "libzip" package
sed -i '/ZIP_LINKFLAGS/ s|\$.*libs.*|-lbz2 -llzma -lzstd -lgnutls -lnettle -lz|' \
Makefile.master
# The ReadPDF plugin needs Poppler, which uses C++17 features
sed -i "/POPPLER_CXXFLAGS/ s/$/ -std=c++17/" \
Makefile.master
}
build() {
cd "${srcdir}/${_pkgname}"
make CONFIG=release
}
package() {
cd "${srcdir}/${_pkgname}"
mkdir -p "${pkgdir}/usr/OFX/Plugins"
make install PLUGINPATH="${pkgdir}/usr/OFX/Plugins" \
CONFIG=release
}
|