pkgname: opentimeline pkgver: '0.18.1' pkgrel: '1' pkgdesc: The OpenTimelineIO package contains an interchange format and API for editorial cut information. url: 'https://opentimeline.io/' arch: x86_64 depends: - python makedepends: - cmake - git - imath - python-build - python-packaging - python-installer - python-setuptools - python-wheel source: - 'https://github.com/AcademySoftwareFoundation/OpenTimelineIO/archive/v${pkgver}/OpenTimelineIO-${pkgver}.tar.gz' sha256sums: - bcb516a43a962dac0cde3e1f9da634c1fd409915d499ff8f3ce6f738a4637d72 build: | cd OpenTimelineIO-${pkgver} git clone https://github.com/Tencent/rapidjson src/deps/rapidjson git clone https://github.com/pybind/pybind11 src/deps/pybind11 git clone https://github.com/AcademySoftwareFoundation/Imath src/deps/Imath sed -e '/cmake/d' -i pyproject.toml cmake -B build -S OpenTimelineIO-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr -DOTIO_FIND_IMATH=ON -DOTIO_AUTOMATIC_SUBMODULES=OFF -DOTIO_DEPENDENCIES_INSTALL=OFF cmake --build build export CXXFLAGS+=" -I/usr/include/Imath" python3 -m build --wheel --no-isolation package: | DESTDIR="${PKGDIR}" cmake --install build cd OpenTimelineIO-${pkgver} python3 -m installer --destdir="${PKGDIR}" dist/*.whl rm -fr "${PKGDIR}"/build