| Name |
librsvg |
| Description |
SVG rendering library |
| Version |
2:2.61.4-1 |
| Package Base |
librsvg |
| Homepage |
https://wiki.gnome.org/Projects/LibRsvg |
| Maintainers |
['Fabian Bornschein <fabiscafe@archlinux.org>', 'Jan Alexander Steffens (heftig) <heftig@archlinux.org>'] |
| Contributors |
['Jan de Groot <jgc@archlinux.org>'] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/librsvg |
| Sources |
['git+https://gitlab.gnome.org/GNOME/librsvg.git#tag=2.61.4'] |
| Dependencies |
['cairo', 'dav1d', 'freetype2', 'gcc-libs', 'gdk-pixbuf2', 'glib2', 'glibc', 'harfbuzz', 'libxml2', 'pango'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['cargo-c', 'gi-docgen', 'git', 'gobject-introspection', 'llvm', 'meson', 'python-docutils', 'rust', 'vala'] |
| Provides |
['librsvg-2.so'] |
| Builddate |
14-02-2026 07:11:35 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['LGPL-2.1-or-later'] |
| Hash |
059d9fffe32b3cbc163374b3c8ce5a2156db4b6e5bf0b6b64af896fe968a8b6a |
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Maintainer: Fabian Bornschein <fabiscafe@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgbase=librsvg
pkgname=(
librsvg
librsvg-docs
)
pkgver=2.61.4
pkgrel=1
epoch=2
pkgdesc="SVG rendering library"
url="https://wiki.gnome.org/Projects/LibRsvg"
arch=(x86_64)
license=(LGPL-2.1-or-later)
depends=(
cairo
dav1d
freetype2
gcc-libs
gdk-pixbuf2
glib2
glibc
harfbuzz
libxml2
pango
)
makedepends=(
cargo-c
gi-docgen
git
gobject-introspection
llvm
meson
python-docutils
rust
vala
)
checkdepends=(ttf-dejavu)
source=(
# librsvg tags use SSH signatures which makepkg doesn't understand
"git+https://gitlab.gnome.org/GNOME/librsvg.git#tag=$pkgver"
)
b2sums=('2e3839de21a227b1f548ee879fdf67eb60422a0632ba06ae6192997876504beead18248825d6b76336fb3435d7aadc291c788ad7fdc8d93058e140059edf8116')
# Use debug
export CARGO_PROFILE_RELEASE_DEBUG=2 CARGO_PROFILE_RELEASE_STRIP=false
# Use LTO
export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
prepare() {
cd librsvg
cargo fetch --locked --target host-tuple
}
build() {
local meson_options=(
-D avif=enabled
-D pixbuf-loader=disabled
)
arch-meson librsvg build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs --no-rebuild
}
package_librsvg() {
provides=(librsvg-${pkgver%%.*}.so)
meson install -C build --destdir "$pkgdir" --no-rebuild
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
}
package_librsvg-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et: