[arch-commits] Commit in librsvg/trunk (PKGBUILD lto.diff)
Jan Steffens
heftig at archlinux.org
Sun Mar 8 03:35:27 UTC 2020
Date: Sunday, March 8, 2020 @ 03:35:27
Author: heftig
Revision: 376959
2.48.0-1
Added:
librsvg/trunk/lto.diff
Modified:
librsvg/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++++++++++++++++++-------------
lto.diff | 10 ++++++++++
2 files changed, 31 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-08 03:26:04 UTC (rev 376958)
+++ PKGBUILD 2020-03-08 03:35:27 UTC (rev 376959)
@@ -1,7 +1,8 @@
# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
pkgname=librsvg
-pkgver=2.46.4
+pkgver=2.48.0
pkgrel=1
epoch=2
pkgdesc="SVG rendering library"
@@ -8,40 +9,47 @@
url="https://wiki.gnome.org/Projects/LibRsvg"
arch=(x86_64)
license=(LGPL)
-depends=(gdk-pixbuf2 pango libcroco)
+depends=(gdk-pixbuf2 pango)
makedepends=(gobject-introspection vala gtk-doc git rust)
-_commit=c7c2c6c280dec08d4dc804379d0fe389e28fbeb3 # tags/2.46.4^0
-source=("git+https://gitlab.gnome.org/GNOME/librsvg.git#commit=$_commit")
-sha256sums=('SKIP')
+checkdepends=(ttf-dejavu)
+provides=(librsvg-${pkgver%%.*}.so)
+_commit=cc3b2fb0672052721e761ca9dd1c8ab6821cbdf9 # tags/2.48.0^0
+source=("git+https://gitlab.gnome.org/GNOME/librsvg.git#commit=$_commit"
+ lto.diff)
+sha256sums=('SKIP'
+ '3cc8ad1af515b2cb4071f0647319c1cf3280dc054875634239061800af1616b6')
pkgver() {
- cd $pkgname
+ cd librsvg
git describe --tags | sed 's/-/+/g'
}
prepare() {
- cd $pkgname
+ cd librsvg
+ # Turn LTO back on
+ git apply -3 ../lto.diff
+
NOCONFIGURE=1 ./autogen.sh
}
build() {
- cd $pkgname
- ./configure --prefix=/usr --disable-static --enable-vala --enable-gtk-doc
+ cd librsvg
+ ./configure --prefix=/usr --disable-static --enable-vala \
+ --enable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
make
}
check() {
- cd $pkgname
+ cd librsvg
# Reftests are probably broken
- # e.g. 91-nonzero-translation-ref.png's background is only 95% transparent,
- # while 91-nonzero-translation-out.png is 100% transparent
+ # some reference images were created without the requested fonts
make check || :
}
package() {
- cd $pkgname
+ cd librsvg
make DESTDIR="$pkgdir" install
}
Added: lto.diff
===================================================================
--- lto.diff (rev 0)
+++ lto.diff 2020-03-08 03:35:27 UTC (rev 376959)
@@ -0,0 +1,10 @@
+diff --git i/Cargo.toml w/Cargo.toml
+index 818fa620..c776b113 100644
+--- i/Cargo.toml
++++ w/Cargo.toml
+@@ -8,3 +8,5 @@ members = [
+
+ [profile.release]
+ debug = true
++lto = "fat"
++codegen-units = 1
More information about the arch-commits
mailing list