diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 1342837..1a9710f 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -3,7 +3,8 @@ # Contributor: Sergej Pupykin # Contributor: Jonathan Wiersma -pkgname=libvirt +pkgbase=libvirt +pkgname=('libvirt' 'libvirt-glusterfs') pkgver=4.3.0 pkgrel=1 pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)" @@ -15,7 +16,7 @@ makedepends=('pkgconfig' 'lvm2' 'linux-api-headers' 'dnsmasq' 'lxc' 'ceph-libs' 'glusterfs' 'netcf' 'yajl' 'parted') options=('emptydirs') validpgpkeys=('C74415BA7C9C7F78F02E1DC34606B8A5DE95BC1F') -source=("https://libvirt.org/sources/${pkgname}-${pkgver}.tar.xz"{,.asc} +source=("https://libvirt.org/sources/${pkgbase}-${pkgver}.tar.xz"{,.asc} 'libvirtd.conf.d' 'libvirtd-guests.conf.d' 'libvirt.sysusers.d') @@ -27,7 +28,7 @@ sha512sums=('cc61497121931019a8cc3fa8234d7cf95b0f0e1d77ab6fcd089db92759617b099eb '7d1d535aaf739a6753f6819c49272c8d9b5f488e0a8553797499334a76b8631474e222b6048f2125b858e5ecc21e602face45dd02121f833d605b9ae58322982') prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${pkgbase}-${pkgver}" for file in $(find . -name '*.py' -print); do sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' "${file}" @@ -50,7 +51,7 @@ prepare() { } build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${pkgbase}-${pkgver}" export PYTHON=`which python2` export LDFLAGS=-lX11 @@ -112,7 +113,7 @@ package_libvirt() { 'etc/logrotate.d/libvirtd.uml' 'etc/sasl2/libvirt.conf') install="libvirt.install" - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${pkgbase}-${pkgver}" make DESTDIR="${pkgdir}" install