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


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

prepare() {
	cd "$_builddir"
	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 \
		--disable-static \
		|| return 1
	make || return 1
}

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

md5sums="3a66ab5b4fe1fb43b471708e4ff39a0e  librsvg-2.40.15.tar.xz"
sha256sums="d9cac4a123eec6e553a26e120979bab7425def9ae7ce7c079eba5e4a45db05f4  librsvg-2.40.15.tar.xz"
sha512sums="1169c02247dbf3d71d3d4bfb1aa2580a4b1e243e1c2c6d1c86aaa09c54c66857b959df4358a1ca6a34ec5fbb34b9529963b993fc978ec1fe401dbc56ac460101  librsvg-2.40.15.tar.xz"