aboutsummaryrefslogtreecommitdiffstats
path: root/main/cairomm/APKBUILD
blob: 4b28dcc083688c0252c27d779070c43b04220b16 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cairomm
pkgver=1.10.0
pkgrel=2
pkgdesc="C++ bindings to Cairo vector graphics library"
url="http://www.cairographics.org"
arch="all"
license="LGPL MPL"
depends=""
makedepends="cairo-dev libsigc++-dev perl"
depends_dev="$makedepends"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.cairographics.org/releases/cairomm-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="9c63fb1c04c8ecd3c5e6473075b8c39f  cairomm-1.10.0.tar.gz"