# Template file for 'rlottie'
pkgname=rlottie
_commit=9be18fbd4047467495af5bd6d83f5b91bc063ea2
version=0.0.20160709
revision=1
wrksrc="rlottie-${_commit}"
build_style=cmake
short_desc="Platform independent standalone library that plays Lottie Animation"
maintainer="John <johnz@posteo.net>"
license="LGPL-2.1-or-later, FTL, MIT, JSON, BSD-3-Clause"
homepage="https://github.com/Samsung/rlottie"
distfiles="https://github.com/Samsung/rlottie/archive/${_commit}.tar.gz"
checksum=d34b3f6acc224a494fae7f2c6c9c231f26652ee50d1493f12a577ce33eff21d3

post_install() {
	vlicense licenses/COPYING.PIX
	vlicense licenses/COPYING.RPD
	vlicense licenses/COPYING.STB
}

rlottie-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
		vmove usr/lib/librlottie.so
	}
}
