Skip to content

Commit

Permalink
resvg: update to 0.29.0.
Browse files Browse the repository at this point in the history
the usvg tool was removed upsteam and might be a seperate project in the future
RazrFalcon/resvg#568
  • Loading branch information
Johnnynator committed Mar 4, 2023
1 parent 9800ad3 commit 3d26e7b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 38 deletions.
20 changes: 0 additions & 20 deletions srcpkgs/resvg/patches/QPainterPath.patch

This file was deleted.

31 changes: 13 additions & 18 deletions srcpkgs/resvg/template
@@ -1,41 +1,36 @@
# Template file for 'resvg'
pkgname=resvg
version=0.6.1
version=0.29.0
revision=1
build_style=cargo
build_helper="rust"
hostmakedepends="cargo qt5-host-tools pkg-config"
makedepends="pango-devel cairo-devel gdk-pixbuf-devel rust-std qt5-devel"
hostmakedepends="cargo"
makedepends="rust-std"
short_desc="SVG rendering library written in Rust"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MPL-2.0"
homepage="https://github.com/RazrFalcon/resvg"
distfiles="https://github.com/RazrFalcon/resvg/releases/download/v${version}/resvg-${version}.tar.xz"
checksum=7206f79f67b4c8610353134c375ed3ff9c5eb63b16fae267b94730c23ebe4ee1
checksum=ba82f5348899e4dc869c57dc0a616ab8bd153746abede79830d78ca9c184dd60

do_build() {
for dir in capi tools/{render,u}svg; do
(
post_build() {
for dir in c-api; do
(
cd $dir
if grep -q cairo-backend Cargo.toml; then
cargo build --release --target ${RUST_TARGET} --features="qt-backend cairo-backend"
else
cargo build --release --target ${RUST_TARGET}
fi
)
cargo auditable build --release --target ${RUST_TARGET}
)
done
}

do_install() {
for t in {render,u}svg; do
vbin target/${RUST_TARGET}/release/$t
done
vbin target/${RUST_TARGET}/release/resvg

# Install library as libresvg.so.0 and make the solink
vinstall target/${RUST_TARGET}/release/libresvg.so 755 usr/lib libresvg.so.0
ln -rs "${DESTDIR}"/usr/lib/libresvg.so.0 "${DESTDIR}"/usr/lib/libresvg.so

vinstall capi/include/resvg.h 644 usr/include
vinstall capi/include/ResvgQt.h 644 usr/include
vinstall c-api/resvg.h 644 usr/include
vinstall c-api/ResvgQt.h 644 usr/include
}

libresvg0_package() {
Expand Down

0 comments on commit 3d26e7b

Please sign in to comment.