1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgname=(librsvg librsvg-docs)
9 pkgdesc="SVG rendering library"
10 url="https://wiki.gnome.org/Projects/LibRsvg"
30 checkdepends=(ttf-dejavu)
31 _commit=b831e077174ae608d8cd09e532fc0e7ce1fe5c4f # tags/2.56.0^0
32 source=("git+https://gitlab.gnome.org/GNOME/librsvg.git#commit=$_commit")
37 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
42 NOCONFIGURE=1 ./autogen.sh
46 export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
49 export CARGO_PROFILE_RELEASE_DEBUG=2
53 ./configure --prefix=/usr --disable-static --enable-vala --enable-gtk-doc
54 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
59 # Test suite is very dependent on the versions of
60 # Cairo, Pango, FreeType and HarfBuzz
61 make -C librsvg check || :
65 provides=(librsvg-${pkgver%%.*}.so)
67 make -C librsvg DESTDIR="$pkgdir" install
69 mkdir -p doc/usr/share
70 mv {"$pkgdir",doc}/usr/share/doc
73 package_librsvg-docs() {
74 pkgdesc+=" (documentation)"
80 # vim:set sw=2 sts=-1 et: