# Maintainer: PktSurf <smlinux@pktsurf.in>
app=librsvg
version=2.56.1
build=1sml
homepage="https://wiki.gnome.org/Projects/LibRsvg"
download="https://download-fallback.gnome.org/sources/librsvg/2.40/librsvg-$version.tar.xz"
desc="SVG rendering library"
requires="libcroco dejavu-fonts-ttf vala pango gdk-pixbuf"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --disable-static

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
0370fd5b1ff8df83f9cbec3a7eef81a0768869b5cf23f3a9118bc00b8bd5ec106a985ca5ca0ff2dbaf4cb547e2b7f63ed2388b7c848c89def4cd8f5989565ffe  librsvg-2.56.1.tar.lz
"
