void-packages/srcpkgs/rlottie/template

40 lines
1.1 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'rlottie'
pkgname=rlottie
_commit=f6fc61f214945ac9961ba49fdfc9a3d3336e999b
version=0.0.20200110
revision=2
wrksrc="rlottie-${_commit}"
build_style=cmake
configure_args="-DLOTTIE_CACHE=OFF"
short_desc="Platform independent standalone library that plays Lottie Animation"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later, FTL, MIT, BSD-3-Clause"
homepage="https://github.com/Samsung/rlottie"
distfiles="https://github.com/Samsung/rlottie/archive/${_commit}.tar.gz"
checksum=399bb06d8d2120f794eff8bc3e4cbbee13b9f22abcfd9f3f746f595d43ea0b42
post_patch() {
vsed -e 's/c++14/c++17/g' -i CMakeLists.txt
# No JSON licensed source code included
vsed -i licenses/COPYING.RPD \
-e 's/To avoid the problematic JSON.*//' \
-e '/Under the JSON License/,/OTHER DEALINGS IN THE SOFTWARE/d'
}
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
}
}