# Description: SVG rendering library with cairo backend # URL: https://wiki.gnome.org/Projects/LibRsvg # Maintainer: Danny Rawlins, crux at romster dot me # Depends on: gdk-pixbuf libcroco pango rust-bin # Optional: sccache name=librsvg version=2.50.2 release=1 source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz) build() { cd $name-$version prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache mkdir "$PKGMK_SOURCE_DIR/rust" || true export CARGO_HOME="$PKGMK_SOURCE_DIR/rust" ./configure \ --prefix=/usr \ --disable-gtk-doc \ --disable-nls sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool make make DESTDIR=$PKG install rm -r $PKG/usr/share/{doc,gtk-doc} }