blob: f02e82b72f61b9b3768fa92c40667c6b76709cea (
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
|
# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
# Contributor: Antonio Rojas <arojas@archlinux.org>
_pkgname=OpenTimelineIO
pkgname=${_pkgname,,}-git
pkgver=last_pure_python.r412.gf7123d0b
pkgrel=1
pkgdesc='Open Source API and interchange format for editorial timeline information'
url='http://opentimeline.io/'
license=(Apache)
arch=(x86_64)
depends=(python-aaf2 python-setuptools)
makedepends=(cmake git imath python-pip pybind11)
optdepends=('pyside2: Required to run otioview')
source=($_pkgname::git+https://github.com/AcademySoftwareFoundation/$_pkgname
any::git+https://github.com/thelink2012/any
optional-lite::git+https://github.com/martinmoene/optional-lite
rapidjson::git+https://github.com/Tencent/rapidjson)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd $_pkgname
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $_pkgname
git submodule init
for dependency in Imath pybind11; do
git rm src/deps/$dependency
done
for dependency in any optional-lite rapidjson; do
git config submodule.src/deps/$dependency.url $srcdir/$dependency
done
git -c protocol.file.allow=always submodule update
# Unbundle pybind11
sed -e 's/pybind11 //' -i src/deps/CMakeLists.txt
sed -e '1 i\find_package(pybind11)' -i src/py-opentimelineio/opentime-bindings/CMakeLists.txt \
-i src/py-opentimelineio/opentimelineio-bindings/CMakeLists.txt
# Unbundle Imath
sed -e '/add_subdirectory/ d' -i src/deps/CMakeLists.txt
}
build() {
cmake -B build -S OpenTimelineIO \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOTIO_FIND_IMATH=ON
cmake --build build
# Workaround messy build system
export CXXFLAGS+=" -I/usr/include/Imath"
cd OpenTimelineIO
python setup.py build
}
package() {
DESTDIR="$pkgdir" cmake --install build
cd OpenTimelineIO
DESTDIR="$pkgdir" python setup.py install --root="$pkgdir" --optimize=1
rm -fr "$pkgdir"/build
}
|