aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-16 12:59:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-16 13:52:48 +0000
commit2e395b14da2254fc4ac374895f6e884dfaede224 (patch)
tree8e2b4448a939b6e1af5c6cf890daf8797341c6a6 /community
parente0b69ccf2d49db8cc4a56e02e2a106c24b244643 (diff)
downloadaports-2e395b14da2254fc4ac374895f6e884dfaede224.tar.bz2
aports-2e395b14da2254fc4ac374895f6e884dfaede224.tar.xz
community/libvirt-glib: move from main
Diffstat (limited to 'community')
-rw-r--r--community/libvirt-glib/APKBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/community/libvirt-glib/APKBUILD b/community/libvirt-glib/APKBUILD
new file mode 100644
index 0000000000..12d477beaa
--- /dev/null
+++ b/community/libvirt-glib/APKBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libvirt-glib
+pkgver=0.2.0
+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="ddfe8490af8263f3423aeb492afd7932 libvirt-glib-0.2.0.tar.gz"
+sha256sums="30b7e0f224f9cdcf34c1b05b08803cb617d057613ee96395ae517f4ee6c44a0b libvirt-glib-0.2.0.tar.gz"
+sha512sums="23b698fe297247dd5ce06d9e37eed2025064ab76a52f008cb89cd835364a52c8fe60ae535f68e67fb6c3454d41328dd77c392efd594a3fb1a237d1beb25d19ae libvirt-glib-0.2.0.tar.gz"