# Template file for 'libopenshot'
pkgname=libopenshot
version=0.2.5
revision=4
archs="i686 x86_64 ppc64le"
build_style=cmake
configure_args="-DENABLE_RUBY=OFF -DUSE_SYSTEM_JSONCPP=ON" # Builds fail with Ruby-2.4.1
hostmakedepends="swig doxygen ruby python3 pkg-config"
makedepends="python3-devel ffmpeg-devel libmagick-devel qt5-devel libgomp-devel
 libopenshot-audio-devel qt5-multimedia-devel unittest-cpp zeromq-devel cppzmq
 jsoncpp-devel"
depends="python3"
short_desc="Library files for the OpenShot video editor"
maintainer="Spencer Hill <spencernh77@gmail.com>"
license="LGPL-3.0-or-later"
homepage="https://github.com/OpenShot/libopenshot"
distfiles="https://github.com/OpenShot/libopenshot/archive/v${version}.tar.gz"
checksum=8ae7d226fbd2efbc84da4f7d9d8c7f3cc9616e4de46e1233e3b0a84ac0a429bc
# FIXME: tests segfault
make_check=extended

libopenshot-devel_package() {
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
	}
}
