39 lines
915 B
Plaintext
39 lines
915 B
Plaintext
# 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
|
|
# Optional: sccache
|
|
|
|
name=librsvg
|
|
version=2.52.0
|
|
release=1
|
|
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
export LC_ALL=C \
|
|
CARGO_PROFILE_RELEASE_LTO=true \
|
|
CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
|
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
|
|
|
unset __GL_NO_DSO_FINALIZER
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-gtk-doc \
|
|
--disable-tools \
|
|
--disable-debug \
|
|
--disable-static \
|
|
--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}
|
|
}
|