opt/librsvg/Pkgfile

36 lines
929 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: Tim Biermann, tbier at posteo dot de
# Depends on: gdk-pixbuf pango rust
# Optional: graphite2 sccache vala
name=librsvg
2023-07-21 16:08:10 +02:00
version=2.56.3
2023-07-02 13:27:53 +02:00
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
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
2020-01-10 13:20:02 +01:00
prt-get isinst vala && PKGMK_LIBRSVG+=' --enable-vala'
2021-10-09 15:13:28 +02:00
export CARGO_PROFILE_RELEASE_LTO=true
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
2021-09-18 14:22:49 +02:00
./configure $PKGMK_LIBRSVG \
--prefix=/usr \
--enable-pixbuf-loader \
--disable-gtk-doc \
--disable-debug \
--disable-nls
make
make DESTDIR=$PKG install
find $PKG/usr/lib -type f -name '*.la' -print -delete
rm -r $PKG/usr/share/doc
}