40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# 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
|
||
}
|
||
}
|