pkgname: opentimeline pkgver: '1.1.0' pkgrel: '1' pkgdesc: 'The OpenTimelineIO package contains an interchange format and API for editorial cut information' url: 'https://opentimeline.io/' arch: x86_64 license: - Apache-2.0 depends: - python - imath makedepends: - cmake - imath - python-build - python-installer - python-setuptools - python-wheel - python-scikit-build-core - pybind11 source: - "https://github.com/AcademySoftwareFoundation/OpenTimelineIO/archive/v${pkgver}/OpenTimelineIO-${pkgver}.tar.gz" - "https://github.com/Tencent/rapidjson/archive/f54b0e4737a80374f3ff3db3b28123061f06ac1b/rapidjson-f54b0e.tar.gz" sha256sums: - SKIP - SKIP build: | cd OpenTimelineIO-${pkgver} # Podpięcie rozpakowanego rapidjson do katalogu zależności jeśli jest wymagany wewnętrznie if [ -d ../rapidjson-* ]; then mkdir -p src/deps/rapidjson cp -r ../rapidjson-*/* src/deps/rapidjson/ fi # Wykorzystanie systemowego C++ CMake build cmake -B build -S . \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DOTIO_FIND_IMATH=ON \ -DOTIO_AUTOMATIC_SUBMODULES=OFF \ -DOTIO_DEPENDENCIES_INSTALL=OFF \ -DOTIO_SHARED_LIBS=ON cmake --build build # Budowanie modułu Pythona (wheel) OTIO_CXX_BUILD_DIR=build python -m build --wheel --no-isolation package: | cd OpenTimelineIO-${pkgver} # Instalacja bibliotek i narzędzi C++ DESTDIR="${PKGDIR}" cmake --install build # Instalacja modułu Pythona python -m installer --destdir="${PKGDIR}" dist/*.whl