Package Details: lunasvg 3.5.0-2

Git Clone URL: https://aur.archlinux.org/lunasvg.git (read-only, click to copy)
Package Base: lunasvg
Description: standalone SVG rendering library in C++
Upstream URL: https://github.com/sammycage/lunasvg
Licenses: MIT
Submitter: jjguti
Maintainer: sfn
Last Packager: sfn
Votes: 3
Popularity: 0.36
First Submitted: 2021-11-05 10:10 (UTC)
Last Updated: 2026-02-15 18:41 (UTC)

Latest Comments

1 2 Next › Last »

kizzycat commented on 2026-02-05 04:39 (UTC)

Hello, I made these changes to build using system plutovg, in case you're interested!

diff --git a/PKGBUILD b/PKGBUILD
index 3f0b8b2..13e4dfc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,6 +6,7 @@ pkgdesc="standalone SVG rendering library in C++ "
 arch=('x86_64' 'aarch64')
 url="https://github.com/sammycage/lunasvg"
 license=('MIT')
+depends=('plutovg')
 makedepends=('cmake')
 source=("$url/archive/refs/tags/v$pkgver.tar.gz")
 sha256sums=('1abf1472ee6c4d19797916e8cc3c2e4b628e0d81178ffac60bdb0d457e32c690')
@@ -15,9 +16,9 @@ CXXFLAGS+=" -ffat-lto-objects"
 build() {
     cd "$pkgname-$pkgver"
     rm -fr build
-    rm -fr plutovg
-    git clone git@github.com:sammycage/plutovg.git
-    cmake -B build . -DCMAKE_INSTALL_PREFIX=/usr/
+    cmake -B build \
+        -DUSE_SYSTEM_PLUTOVG=ON \
+        -DCMAKE_INSTALL_PREFIX=/usr/ .
     cmake --build build
 }

PixeMagicKitty commented on 2026-02-01 11:33 (UTC)

Replacing line 20 of the PKGBUILD with...

git clone https://github.com/sammycage/plutovg.git

...fixes the following error

Cloning into 'plutovg'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.

==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build lunasvg - makepkg exited with code: 4

Popolon commented on 2025-12-31 11:55 (UTC) (edited on 2025-12-31 11:59 (UTC) by Popolon)

Please add rm duplicate plutovg files (probably best choice).

 cd ${pkgdir}/lunasvg/usr/ 
 rm ./include/plutovg/plutovg.h
 rm ./lib/libplutovg.a
 rm ./lib/pkgconfig/plutovg.pc
 rm -R ./lib/cmake/plutovg

or add plutovg as conflict, and add provide (probably

conflicts=('plutovg')
provides=('plutovg')

this version of svg2png in the package (currently already build). As several SVG libraries packages can have their own version to svg2png, it's better to add a suffix to know will algorithm/capabilities will be used.

 install -D655 /build/examples/svg2png /usr/bin/svg2png-lunasvg

xAsh commented on 2025-11-12 22:37 (UTC)

I can't have both plutovg and lunasvg installed at the same time, as lunasvg tries to overwrite plutovg files:

error: failed to commit transaction (conflicting files)
plutovg: /usr/include/plutovg/plutovg.h exists in filesystem (owned by lunasvg)
plutovg: /usr/lib/cmake/plutovg/plutovgConfig.cmake exists in filesystem (owned by lunasvg)
plutovg: /usr/lib/cmake/plutovg/plutovgConfigVersion.cmake exists in filesystem (owned by lunasvg)
plutovg: /usr/lib/cmake/plutovg/plutovgTargets.cmake exists in filesystem (owned by lunasvg)
plutovg: /usr/lib/pkgconfig/plutovg.pc exists in filesystem (owned by lunasvg)

oweissbarth commented on 2025-10-29 13:38 (UTC)

Adding to bartus comment the way you currently clone plutosvg expects a working ssh key setup this github. Instead clone over https should be used.

bartus commented on 2025-10-20 09:14 (UTC) (edited on 2025-10-20 13:09 (UTC) by bartus)

Small fix/improvement: include the plutosvg git sources in the sources[] array.

merge with: git am -s < <(curl -s http://0x0.st/K1F_.mbox)

sfn commented on 2025-10-13 09:09 (UTC)

Thank you for implementing them!

ichlubnai commented on 2025-10-13 05:37 (UTC)

I added the proposed edits. Thanks.

sfn commented on 2025-10-12 14:33 (UTC)

Found another bug: because lunasvg builds static libs, it causes problems with lto builds. See https://archlinux.org/todo/lto-fat-objects/, tldr add CFLAGS+=" -ffat-lto-objects" to the PKGBUILD

sfn commented on 2025-10-10 12:29 (UTC)

Also, the new version defaults to installing to /usr/local (system packages should install straight to /usr).

To fix I added -DCMAKE_INSTALL_PREFIX=/usr/ in the configure stage