opt/librsvg/Pkgfile

32 lines
921 B
Plaintext

# Description: SVG rendering library with cairo backend
# URL: https://wiki.gnome.org/Projects/LibRsvg
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cargo-c gdk-pixbuf pango toml2json
# Optional: graphite2 libdav1d sccache vala
name=librsvg
version=2.59.1
release=1
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
build() {
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
prt-get isinst vala && PKGMK_LIBRSVG+=' --enable-vala'
export CARGO_PROFILE_RELEASE_LTO=true
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
meson setup $name-$version build \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D docs=disabled \
-D tests=false
meson compile -C build
DESTDIR=$PKG meson install -C build
}