aboutsummaryrefslogtreecommitdiffstats
path: root/community/libvirt-glib/APKBUILD
blob: 1e05c89463e663d8cbea7e800615816b263f1e0e (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
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libvirt-glib
pkgver=2.0.0
pkgrel=0
pkgdesc="libvirt glib integration for events"
url="http://libvirt.org/"
arch="all"
license="LGPL-2.0-or-later"
depends=""
makedepends="gobject-introspection-dev libvirt-dev
libxml2-dev vala sed intltool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://libvirt.org/sources/glib/libvirt-glib-$pkgver.tar.gz"
builddir="$srcdir"/libvirt-glib-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	# work around parallel build issue
	make -C libvirt-glib \
		&& make -C libvirt-gconfig \
		&& make -C libvirt-gobject || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="6ead4c37c314eb5670c5aa282ce039a0182a71a20b349a5d9c78367381eb674fad0f2ca0f2e20e1e89ff7df2ac9f1640f20fdfa63d599d8a2538fb4c0fba4c3f  libvirt-glib-2.0.0.tar.gz"