summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 165b0c4633a56807c1deec2b8937285e38394297 (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
40
41
42
43
44
45
46
47
48
49
50
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=librsvg-minimal-git
pkgver=2.50.2
pkgrel=1
pkgdesc="SVG rendering library"
url="https://wiki.gnome.org/Projects/LibRsvg"
arch=(x86_64)
license=(LGPL)
depends=(gdk-pixbuf2 pango)
makedepends=(gobject-introspection vala git rust)
provides=(librsvg-${pkgver%%.*}.so librsvg)
conflicts=(librsvg)
source=("git+https://gitlab.gnome.org/GNOME/librsvg.git")
sha256sums=('SKIP')

pkgver() {
  cd librsvg
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd librsvg

  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd librsvg
  ./configure --prefix=/usr --disable-static --enable-vala --disable-pixbuf-loader --disable-debug \
    --disable-gtk-doc
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
  make
}

#check() {
#  cd librsvg
  # Test suite is very dependent on the versions of
  # Cairo, Pango, FreeType and HarfBuzz
#  make check || :
#}

package() {
  cd librsvg
  make DESTDIR="$pkgdir" install
}

# vim: ts=2 sw=2 et: