1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Martin Wimpress <code@flexion.org>
3 # Contributor: Foster McLane <fkmclane@gmail.com>
4 # Contributor: Jonathan Thomas <jonathan@openshot.org>
9 pkgdesc="A video editing, animation, and playback library for C++, Python, and Ruby"
11 url="https://github.com/openshot/libopenshot"
13 # TODO: package cppzmq and resvg
38 provides=(libopenshot.so)
39 source=($url/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
40 sha512sums=('8891077af28a4db6bc3a7cd078ce5570a8f62e0795c13b0fff795eba60c3e977ece70247033ee4017c9785592355b7421655246a5d6807a5790bd18927739795')
41 b2sums=('5bc371481ddf69b5de909963cb83d1128066280e1259ae8b23f7ef5450f3da00ef1137dcefe2978e10d1a51931529f104aebdf0601be4b066c7ed371ea43439e')
44 local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
47 -D CMAKE_BUILD_TYPE=None
48 -D CMAKE_INSTALL_PREFIX=/usr
50 -D MAGICKCORE_HDRI_ENABLE=1
51 -D MAGICKCORE_QUANTUM_DEPTH=16
52 -D PYTHON_INCLUDE_DIRS=/usr/include/python$python_version
53 -D PYTHON_LIBRARIES=/usr/lib/libpython3.so
54 -D USE_SYSTEM_JSONCPP=ON
59 cmake "${cmake_options[@]}"
64 # disable broken test: https://github.com/OpenShot/libopenshot/issues/922
65 xvfb-run ctest --test-dir build --output-on-failure -E '(Caption:caption effect)'
71 ffmpeg libavcodec.so libavformat.so libavutil.so libswscale.so libswresample.so
73 libopenshot-audio libopenshot-audio.so
74 protobuf libprotobuf.so
78 DESTDIR="$pkgdir" cmake --install build
79 install -vDm 644 $pkgname-$pkgver/{AUTHORS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"