Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / opentimelineio
Commits: 691ae002 by Antonio Rojas at 2023-12-16T18:19:41+01:00 upgpkg: 0.15-4: Switch to PEP 517 - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,27 @@ +pkgbase = opentimelineio + pkgdesc = Open Source API and interchange format for editorial timeline information + pkgver = 0.15 + pkgrel = 4 + url = http://opentimeline.io/ + arch = x86_64 + license = Apache + makedepends = cmake + makedepends = git + makedepends = imath + makedepends = pybind11 + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel + depends = gcc-libs + depends = glibc + depends = python + depends = python-aaf2 + source = git+https://github.com/PixarAnimationStudios/OpenTimelineIO#tag=v0.15 + source = opentimelineio-rapidjson::git+https://github.com/Tencent/rapidjson + source = unbundle.patch + sha256sums = SKIP + sha256sums = SKIP + sha256sums = 1239ca9258b9c828bff3024564d67968e6e2986ecb0d3b4d900320405cc0d197 + +pkgname = opentimelineio ===================================== PKGBUILD ===================================== @@ -2,15 +2,25 @@ pkgname=opentimelineio pkgver=0.15 -pkgrel=3 +pkgrel=4 pkgdesc='Open Source API and interchange format for editorial timeline information' url='http://opentimeline.io/' license=(Apache) arch=(x86_64) -depends=(python-aaf2) -makedepends=(cmake python-setuptools pybind11 git imath) +depends=(gcc-libs + glibc + python + python-aaf2) +makedepends=(cmake + git + imath + pybind11 + python-build + python-installer + python-setuptools + python-wheel) source=(git+https://github.com/PixarAnimationStudios/OpenTimelineIO#tag=v$pkgver - git+https://github.com/Tencent/rapidjson + opentimelineio-rapidjson::git+https://github.com/Tencent/rapidjson unbundle.patch) sha256sums=('SKIP' 'SKIP' @@ -20,10 +30,12 @@ prepare() { cd OpenTimelineIO git submodule init src/deps/rapidjson - git submodule set-url src/deps/rapidjson "$srcdir"/rapidjson + git submodule set-url src/deps/rapidjson "$srcdir"/opentimelineio-rapidjson git -c protocol.file.allow=always submodule update src/deps/rapidjson + git cherry-pick -n d1e78073d4fc321b667ceffc2d95251015af5fea # Fix build with GCC 13 patch -p1 -i ../unbundle.patch # Use C++17 any and optional + sed -e '/cmake/d' -i pyproject.toml } build() { @@ -37,13 +49,13 @@ build() { # Workaround messy build system export CXXFLAGS+=" -I/usr/include/Imath" cd OpenTimelineIO - python setup.py build + python -m build --wheel --no-isolation } package() { DESTDIR="$pkgdir" cmake --install build cd OpenTimelineIO - DESTDIR="$pkgdir" python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl rm -fr "$pkgdir"/build } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/opentimelineio/-/commit/691ae0027b684c9e58706215ae0fcb59da092399 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/opentimelineio/-/commit/691ae0027b684c9e58706215ae0fcb59da092399 You're receiving this email because of your account on gitlab.archlinux.org.
