# Template file for 'resvg' pkgname=resvg version=0.46.0 revision=1 build_style=cargo configure_args="--workspace --exclude=resvg-capi" hostmakedepends="cargo-c" short_desc="SVG rendering library written in Rust" maintainer="Orphaned " license="Apache-2.0 OR MIT" homepage="https://github.com/linebender/resvg" changelog="https://raw.githubusercontent.com/linebender/resvg/refs/heads/main/CHANGELOG.md" distfiles="https://github.com/linebender/resvg/archive/refs/tags/v${version}.tar.gz" checksum=81a82a8de33da0fcf13fd18532d653bbd0b50b146d82c319dd0ce7294562c7c5 post_build() { ( cd crates/c-api cargo auditable cbuild --release --target ${RUST_TARGET} \ --library-type cdylib --library-type staticlib \ --destdir="${DESTDIR}" --prefix="/usr" --locked ) } do_install() { for _bin in {re,u}svg; do vbin target/${RUST_TARGET}/release/${_bin} done vlicense LICENSE-APACHE vlicense LICENSE-MIT # Install C library ( cd crates/c-api cargo auditable cinstall --release --target ${RUST_TARGET} \ --library-type cdylib --library-type staticlib \ --destdir="${DESTDIR}" --prefix="/usr" --offline --locked ) } libresvg0_package() { short_desc+=" - resvg library" pkg_install() { vmove "usr/lib/libresvg.so.*" } } libresvg-devel_package() { depends="libresvg0-${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.a" vmove "usr/lib/*.so" } }