blob: aa1aa8afaaa4ed802822cb87e47728f851f09b7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/sh
NAME="librsvg"
DESC="SAX-based renderer for SVG files into a GdkPixbuf"
MAKEDEPS="make rust cargo vala cairo gdk-pixbuf glib libxml2 musl pango curl python-docutils"
PKG_VER=2.55.1
SOURCE="https://download.gnome.org/sources/librsvg/${PKG_VER%.*}/librsvg-$PKG_VER.tar.xz"
ADDITIONAL="target.patch"
prepare () {
apply_patches
export RUSTFLAGS="$RUSTFLAGS -C debuginfo=2"
export CARGO_PROFILE_RELEASE_LTO=true
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
}
build () {
export CFLAGS="-fPIC" CXXFLAGS="-fPIC"
./configure --prefix=/usr \
--libexecdir=/usr/lib/librsvg \
--disable-static \
--enable-vala
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
make -j1
}
package () {
make DESTDIR=$PKG_DEST install
}
postinstall () {
gdk-pixbuf-query-loaders --update-cache
}
|