summaryrefslogtreecommitdiff
path: root/skip/librsvg.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-03 19:59:53 +0100
committerdavidovski <david@davidovski.xyz>2022-05-03 19:59:53 +0100
commit751b7f3d84515715d07d92a5aed78062bd39adff (patch)
tree9bfdc04a539250f35452cbd0986ca361dd91509f /skip/librsvg.xibuild
parent50740393013cb5fde05318d917ac4b68c58fdfa9 (diff)
added extra files
Diffstat (limited to 'skip/librsvg.xibuild')
-rw-r--r--skip/librsvg.xibuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/skip/librsvg.xibuild b/skip/librsvg.xibuild
new file mode 100644
index 0000000..3840b69
--- /dev/null
+++ b/skip/librsvg.xibuild
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+NAME="librsvg"
+DESC="SAX-based renderer for SVG files into a GdkPixbuf"
+
+MAKEDEPS="make cargo rustc "
+DEPS="cairo gdk-pixbuf glib libxml2 musl pango "
+
+PKG_VER=2.54.1
+SOURCE="https://download.gnome.org/sources/librsvg/${PKG_VER%.*}/librsvg-$PKG_VER.tar.xz"
+ADDITIONAL="target.patch"
+
+prepare () {
+ apply_patches
+}
+
+
+build () {
+ # Use LTO
+ #export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
+#
+ ## Use debug
+ #export CARGO_PROFILE_RELEASE_DEBUG=2
+ export CC="clang"
+ export CXX="clang++"
+ export LD="clang"
+
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/lib/librsvg \
+ --disable-static \
+ --enable-vala
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
+
+ make
+
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ gdk-pixbuf-query-loaders --update-cache
+}