blob: faf85da231dfce18d3ed0cb8beb1e7f2424fb291 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 2026 Gurov <thuggerthugger1@duck.com>
# Distributed under the terms of the GNU General Public License v2
require cargo [ rust_minimum_version=1.96.1 ]
TLOTTIE_COMMIT="31f1b542f88e7b4be9a01e749920d857535fc715"
SUMMARY="Rust library for rendering Lottie animations"
HOMEPAGE="https://github.com/dkaraush/tlottie"
DOWNLOADS="${HOMEPAGE}/archive/${TLOTTIE_COMMIT}.tar.gz -> ${PNV}.tar.gz"
WORK="${WORKBASE}/tlottie-${TLOTTIE_COMMIT}"
LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64"
DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/${PNV}-tdesktop-compat.patch" )
src_compile() {
ecargo rustc --frozen --release --features c-api --lib --crate-type staticlib \
-- --print native-static-libs
}
src_install() {
insinto /usr/$(exhost --target)/lib
doins "target/$(rust_target_arch_name)/release/libtlottie.a"
insinto /usr/$(exhost --target)/include/tlottie
doins include/tlottie.h
emagicdocs
}
|