aboutsummaryrefslogtreecommitdiffstats
path: root/main/librsvg/APKBUILD
blob: aa63cda41396e2da8a3d3c00b0cc742fee233361 (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.9
pkgrel=1
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="31df15e3beaa8fbbf538ca3c52b400d2  librsvg-2.40.9.tar.xz"
sha256sums="13964c5d35357552b47d365c34215eee0a63bf0e6059b689f048648c6bf5f43a  librsvg-2.40.9.tar.xz"
sha512sums="17b72b509b0d38b1291a2a0594739fd650622ab2a913a5e0c864e5060b15093fc49e436c9e2494d57b475572183d1059ae50b7a1d44a1d4d071ac5ef3bcbeaf6  librsvg-2.40.9.tar.xz"