aboutsummaryrefslogtreecommitdiffstats
path: root/main/librsvg/APKBUILD
blob: 2973f0f94cd662705606a7e823f614de0c640a77 (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
51
52
53
54
55
56
57
58
59
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=librsvg
pkgver=2.40.0
pkgrel=1
pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
url="http://librsvg.sourceforge.net/"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="gtk+-dev libcroco-dev libgsf-dev bzip2-dev
	gobject-introspection-dev"
install=
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	use-realpath.patch
	"

depends_dev="glib-dev gtk+-dev cairo-dev libcroco-dev libgsf-dev"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib/$pkgname \
		--with-croco \
		--disable-static \
		--disable-mozilla-plugin \
		--with-svgz \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR=""$pkgdir"" install || return 1
	rm -rf "$pkgdir"/usr/lib/mozilla || return 1
	find "$pkgdir" -name '*.la' -delete
}

md5sums="e16a84e9a86a18e5ca6ba95c512db6c6  librsvg-2.40.0.tar.xz
2f27fcd4f65e3008fe768d7e804302e6  use-realpath.patch"
sha256sums="8f7db31df235813dbd035888035cf862d682e7cc5706c4e7ec05750d3f64a2f9  librsvg-2.40.0.tar.xz
aea02613f4d24e580535314a5df01d08a178d6083b38217ec7bcac3613a1ea34  use-realpath.patch"
sha512sums="c1db86486c54005d8e076b128241c21358c4d25bac8a332c86bf511f5121db5e3550fcb0cc3e7359676199bdc6f12b6283a838a82bd8882b335cea102cba2131  librsvg-2.40.0.tar.xz
478179932e8b71b1495530b1cb9a89ff1f1fbb1c3109440021667ee101e7059cf60cd84328aa4bcc826938ecbbae79585e42feea646103c8ff9bd951b0d9bb89  use-realpath.patch"