aboutsummaryrefslogtreecommitdiffstats
path: root/main/librsvg/APKBUILD
blob: 8d2c06226810fb19e2b8fedc3483835567de7e9a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=librsvg
pkgver=2.40.21
pkgrel=0
pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
url="http://live.gnome.org/LibRsvg"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="gtk+2.0-dev libcroco-dev libgsf-dev"
makedepends="$depends_dev bzip2-dev cairo-dev glib-dev
	gobject-introspection-dev"
install=
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	"
# sporadic testsuite failures
options="!check"

# secfixes:
#   2.40.21-r0:
#     - CVE-2019-20446

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib/$pkgname \
		--disable-static
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR=""$pkgdir"" install
	rm -rf "$pkgdir"/usr/lib/mozilla
}

sha512sums="db0563d8e0edaae642a6b2bcd239cf54191495058ac8c7ff614ebaf88c0e30bd58dbcd41f58d82a9d5ed200ced45fc5bae22f2ed3cf3826e9348a497009e1280  librsvg-2.40.21.tar.xz"