diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-10 13:18:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-10 13:18:41 +0000 |
commit | c6be16e12949455cbe3582705c83033ebac8a814 (patch) | |
tree | f0416538dc82cb77faf3ffb3105feb4fd4a83598 /testing | |
parent | 31b3b3af97de19a5f945d88a956f5009fbfd418d (diff) | |
download | aports-c6be16e12949455cbe3582705c83033ebac8a814.tar.bz2 aports-c6be16e12949455cbe3582705c83033ebac8a814.tar.xz |
testing/libvirt-glib: new aport
libvirt glib integration for events
http://libvirt.org/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libvirt-glib/APKBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/libvirt-glib/APKBUILD b/testing/libvirt-glib/APKBUILD new file mode 100644 index 0000000000..5d29ce7a25 --- /dev/null +++ b/testing/libvirt-glib/APKBUILD @@ -0,0 +1,53 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libvirt-glib +pkgver=0.1.7 +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" +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 --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || 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="75a43b85e19aa711f04c1c7acbe1d777 libvirt-glib-0.1.7.tar.gz" +sha256sums="39652c07d95f980ff30b39e0fd072e768fb85d778d65432da24b17dee9d36429 libvirt-glib-0.1.7.tar.gz" +sha512sums="a6e296afbee64424009119036637fe96bbd703c9209e832fbf9fe1ad82054ce39017ce4e2e0b4d59559193dee2de50d72d171701eacfebd3baccb61ff3216662 libvirt-glib-0.1.7.tar.gz" |