← recipes

Commit b479980

0
plików
+0
dodanych
-0
usuniętych
@@ -1,47 +1,62 @@
1 1 pkgname: opentimeline
2 2 pkgver: '0.18.1'
3 3 pkgrel: '1'
4 -pkgdesc: The OpenTimelineIO package contains an interchange format and API for editorial cut information.
4 +pkgdesc: 'The OpenTimelineIO package contains an interchange format and API for editorial cut information'
5 5 url: 'https://opentimeline.io/'
6 6 arch: x86_64
7 +license:
8 +- Apache-2.0
9 +
7 10 depends:
8 11 - python
12 +- imath
13 +
9 14 makedepends:
10 15 - cmake
11 -- git
12 16 - imath
13 17 - python-build
14 -- python-packaging
15 18 - python-installer
16 19 - python-setuptools
17 20 - python-wheel
21 +- python-scikit-build-core
22 +- pybind11
23 +
18 24 source:
19 -- 'https://github.com/AcademySoftwareFoundation/OpenTimelineIO/archive/v${pkgver}/OpenTimelineIO-${pkgver}.tar.gz'
25 +- "https://github.com/AcademySoftwareFoundation/OpenTimelineIO/archive/v${pkgver}/OpenTimelineIO-${pkgver}.tar.gz"
26 +- "https://github.com/Tencent/rapidjson/archive/f54b0e4737a80374f3ff3db3b28123061f06ac1b/rapidjson-f54b0e.tar.gz"
27 +
20 28 sha256sums:
21 29 - bcb516a43a962dac0cde3e1f9da634c1fd409915d499ff8f3ce6f738a4637d72
30 +- SKIP
31 +
22 32 build: |
23 33 cd OpenTimelineIO-${pkgver}
24 34
25 - git clone https://github.com/Tencent/rapidjson src/deps/rapidjson
26 -
27 - git clone https://github.com/pybind/pybind11 src/deps/pybind11
28 -
29 - git clone https://github.com/AcademySoftwareFoundation/Imath src/deps/Imath
30 -
31 - sed -e '/cmake/d' -i pyproject.toml
32 - cmake -B build -S OpenTimelineIO-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr -DOTIO_FIND_IMATH=ON -DOTIO_AUTOMATIC_SUBMODULES=OFF -DOTIO_DEPENDENCIES_INSTALL=OFF
35 + # Podpięcie rozpakowanego rapidjson do katalogu zależności jeśli jest wymagany wewnętrznie
36 + if [ -d ../rapidjson-* ]; then
37 + mkdir -p src/deps/rapidjson
38 + cp -r ../rapidjson-*/* src/deps/rapidjson/
39 + fi
40 +
41 + # Wykorzystanie systemowego C++ CMake build
42 + cmake -B build -S . \
43 + -DCMAKE_INSTALL_PREFIX=/usr \
44 + -DCMAKE_BUILD_TYPE=Release \
45 + -DOTIO_FIND_IMATH=ON \
46 + -DOTIO_AUTOMATIC_SUBMODULES=OFF \
47 + -DOTIO_DEPENDENCIES_INSTALL=OFF \
48 + -DOTIO_SHARED_LIBS=ON
33 49
34 50 cmake --build build
35 51
36 - export CXXFLAGS+=" -I/usr/include/Imath"
37 -
52 + # Budowanie modułu Pythona (wheel)
53 + OTIO_CXX_BUILD_DIR=build python -m build --wheel --no-isolation
38 54
39 - python3 -m build --wheel --no-isolation
40 55 package: |
41 - DESTDIR="${PKGDIR}" cmake --install build
42 -
43 56 cd OpenTimelineIO-${pkgver}
44 57
45 - python3 -m installer --destdir="${PKGDIR}" dist/*.whl
58 + # Instalacja bibliotek i narzędzi C++
59 + DESTDIR="${PKGDIR}" cmake --install build
46 60
47 - rm -fr "${PKGDIR}"/build
61 + # Instalacja modułu Pythona
62 + python -m installer --destdir="${PKGDIR}" dist/*.whl