APKBUILD 944 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cairo
3
pkgver=1.8.10
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6 7 8
pkgdesc="Cairo vector graphics library"
url="http://cairographics.org/"
license="LGPL MPL"
subpackages="$pkgname-dev $pkgname-doc"
Natanael Copa's avatar
Natanael Copa committed
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10
makedepends="pkgconfig libpng-dev libxrender-dev fontconfig pixman-dev
Natanael Copa's avatar
Natanael Copa committed
11 12
	xcb-util-dev fontconfig-dev freetype-dev expat-dev zlib-dev
	libiconv-dev"
13 14
depends_dev="fontconfig-dev freetype-dev libpng-dev libxrender-dev pixman-dev
	xcb-util-dev"
Natanael Copa's avatar
Natanael Copa committed
15 16
source="http://cairographics.org/releases/$pkgname-$pkgver.tar.gz"

17 18 19 20
_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
  	sed -i -e 's/libpng13/libpng14/g' configure || return 1
Natanael Copa's avatar
Natanael Copa committed
21 22 23 24 25 26
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-xcb \
		--disable-static || return 1
	make || return 1
27 28 29 30 31
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
32
}
33
md5sums="b60a82f405f9400bbfdcf850b1728d25  cairo-1.8.10.tar.gz"