aboutsummaryrefslogtreecommitdiffstats
path: root/community/libvirt-glib/APKBUILD
blob: 42026eb2b478280d49a450c562aebb25bae8f04b (plain) (blame)
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
53
54
55
56
57
58
59
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libvirt-glib
pkgver=0.2.3
pkgrel=0
pkgdesc="libvirt glib integration for events"
url="http://libvirt.org/"
arch="all"
license="LGPLv2+"
depends=""
depends_dev="glib-dev libxml2-dev libvirt-dev"
makedepends="$depends_dev intltool gobject-introspection-dev python-dev
	vala sed"
install=""
subpackages="$pkgname-dev $pkgname-doc py-$pkgname:_py"
source="http://libvirt.org/sources/glib/libvirt-glib-$pkgver.tar.gz"

_builddir="$srcdir"/libvirt-glib-$pkgver
prepare() {
	local i
	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 \
		--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
}

_py() {
	pkgdesc="Python library for $pkgname"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

md5sums="a19c9b644dd5f2b9e3e1a4a21f34e2e0  libvirt-glib-0.2.3.tar.gz"
sha256sums="c3b11aa34584b3416148b36bb005505e461830c73c9fd2f40143cca3309250dd  libvirt-glib-0.2.3.tar.gz"
sha512sums="007e642724658e7f2d4ad10094e70a93186196467140662d5e71644ae8efac25a7f60dcf51b55b60d056d3079ecf0798428e077cb6110292ce5f2a474db9e369  libvirt-glib-0.2.3.tar.gz"