aboutsummaryrefslogtreecommitdiffstats
path: root/main/librsvg/APKBUILD
blob: e9db456f350d6b3cedb34da202245f0ff4aa3aa3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=librsvg
pkgver=2.40.2
pkgrel=0
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
	"

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 \
		--disable-static \
		|| 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="acdecdb9f08f3bf662a68bf7dafb8b82  librsvg-2.40.2.tar.xz"
sha256sums="48049b643294636df7de1a4b997414d699666f5dc44776945c218a257d2a291c  librsvg-2.40.2.tar.xz"
sha512sums="ecb144f8f02240f44edc4baf372477d6a8436abfcabad0e9fdce9cd629ace819f14d0c8174d9522b4cc63429031a1ecb611bbdabbdb432ec3f211cf331208f84  librsvg-2.40.2.tar.xz"