void-packages/srcpkgs/rlottie/template

41 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
version=0.2
revision=1
build_style=cmake
checkdepends="gtest-devel"
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/v${version}.tar.gz"
checksum=030ccbc270f144b4f3519fb3b86e20dd79fb48d5d55e57f950f12bab9b65216a
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args=" -DLOTTIE_TEST=ON"
fi
post_patch() {
# 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
}
}