aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvirt-glib/APKBUILD
blob: af579352e2154a7c36840d30868d73aa99340fc2 (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
53
54
55
56
57
58
59
60
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvirt-glib
pkgver=0.1.8
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
	find "$pkgdir" -name '*.la' -delete
}

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

md5sums="6451635cb7912998ebb7b43036ef6508  libvirt-glib-0.1.8.tar.gz"
sha256sums="da0e45952dbe1d5d9fde4f845f3a10763e7fed0b1e45906a46fdb74b777aa751  libvirt-glib-0.1.8.tar.gz"
sha512sums="0e5a9b16c61a649d964312f9be97c1dfa5597192530e6645c8abdaf64547c8251fe0a66f3b1eebaf5361ec2cd69efe9b4824106e87180ec1a31d82a73c1240ed  libvirt-glib-0.1.8.tar.gz"