blob: 37202082f5f5db96df3635990a6d73ec2e04220c (
plain)
1 # Description: SVG rendering library with cairo backend
2 # URL: https://wiki.gnome.org/Projects/LibRsvg
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: gdk-pixbuf libcroco pango rust-bin
5 # Optional: sccache
6
7 name=librsvg
8 version=2.48.0
9 release=1
10 source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz)
11
12 build() {
13 cd $name-$version
14
15 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
16 mkdir "$PKGMK_SOURCE_DIR/rust" || true
17 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
18
19 ./configure \
20 --prefix=/usr \
21 --disable-gtk-doc \
22 --disable-nls
23
24 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
25
26 make
27 make DESTDIR=$PKG install
28
29 rm -r $PKG/usr/share/{doc,gtk-doc}
30 }
|