pkgname=librsvg pkgver=2.59.2 pkgrel=1 pkgdesc="SVG rendering library" arch=('x86_64') url="https://wiki.gnome.org/Projects/LibRsvg" license=('LGPL-2.1-or-later') depends=( 'cairo' 'freetype2' 'gcc-libs' 'gdk-pixbuf' 'glib2' 'glibc' 'harfbuzz' 'libxml2' 'pango' ) makedepends=( 'cargo-c' 'python-gi-docgen' 'gobject-introspection' 'llvm' 'meson' 'python-docutils' 'rust' 'vala' ) source=(https://download.gnome.org/sources/librsvg/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) sha256sums=() prepare() { cd ${pkgname}-${pkgver} sed -e "/OUTDIR/s|,| / 'librsvg-2.59.2', '--no-namespace-dir',|" \ -e '/output/s|Rsvg-2.0|librsvg-2.59.2|' \ -i doc/meson.build } build() { cd ${pkgname}-${pkgver} local meson_args=( -Davif=enabled ) ${meson_options} ${meson_args[@]} ${meson_build} } package() { cd ${pkgname}-${pkgver} ${meson_install} ${pkgdir} }