opt/librsvg/Pkgfile

39 lines
915 B
Plaintext
Raw Normal View History

# Description: SVG rendering library with cairo backend
2020-01-10 13:20:02 +01:00
# URL: https://wiki.gnome.org/Projects/LibRsvg
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: gdk-pixbuf libcroco pango rust
2020-01-10 13:20:02 +01:00
# Optional: sccache
name=librsvg
2021-09-18 14:22:49 +02:00
version=2.52.0
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
build() {
cd $name-$version
2021-09-18 14:22:49 +02:00
export LC_ALL=C \
CARGO_PROFILE_RELEASE_LTO=true \
CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
2020-01-10 13:20:02 +01:00
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
2021-09-18 14:22:49 +02:00
unset __GL_NO_DSO_FINALIZER
./configure \
--prefix=/usr \
2019-10-15 09:43:55 +02:00
--disable-gtk-doc \
2021-09-18 14:22:49 +02:00
--disable-tools \
--disable-debug \
--disable-static \
2019-10-15 09:43:55 +02:00
--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}
}