aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2022-01-15 21:09:30 +0100
committerFrancesco Colista <fcolista@alpinelinux.org>2022-01-18 15:36:51 +0000
commit456fe5a1d74315f3c80653dc9a5757ec33d6ce77 (patch)
treee14c96c7f674cb78be548e2df11c0249d2bd2820
parenta262d88b14e2df3e6518667fee02f193d07dc678 (diff)
downloadaports-456fe5a1d74315f3c80653dc9a5757ec33d6ce77.tar.gz
aports-456fe5a1d74315f3c80653dc9a5757ec33d6ce77.tar.bz2
aports-456fe5a1d74315f3c80653dc9a5757ec33d6ce77.tar.xz
community/libvirt: use meson wrapper
-rw-r--r--community/libvirt/APKBUILD24
1 files changed, 11 insertions, 13 deletions
diff --git a/community/libvirt/APKBUILD b/community/libvirt/APKBUILD
index f247f383e0..acb5404715 100644
--- a/community/libvirt/APKBUILD
+++ b/community/libvirt/APKBUILD
@@ -2,7 +2,7 @@
pkgname=libvirt
pkgver=8.0.0
_ver="${pkgver/_rc/-rc}"
-pkgrel=0
+pkgrel=1
pkgdesc="A virtualization API for several hypervisor and container systems"
url="https://libvirt.org/"
# mips64, s390x and riscv64 blocked by polkit
@@ -57,27 +57,25 @@ subpackages="$subpackages $pkgname-common-drivers:_common_drivers"
# - CVE-2019-10166
# - CVE-2019-10161
-prepare() {
- default_prepare
- mkdir -p build
-}
-
build() {
- cd build
# qemu sets libexec dir to /usr/lib/qemu
export ac_cv_path_QEMU_BRIDGE_HELPER="/usr/lib/qemu/qemu-bridge-helper"
[ "$CARCH" = x86_64 ] && local _xen_opt="--with-libxl"
[ "$CARCH" = x86_64 ] && local _zfs_opt="--with-storage-zfs"
- meson \
- --prefix=/usr \
+ abuild-meson \
--libexec=/usr/lib/$pkgname \
- --sysconfdir=/etc
- ninja
+ . output
+
+ meson configure output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+ meson test --no-rebuild -v -C output
}
package() {
- cd build
- DESTDIR="$pkgdir" ninja install
+ DESTDIR="$pkgdir" ninja -C output install
install -Dm755 $srcdir/$pkgname.initd $pkgdir/etc/init.d/libvirtd
install -Dm644 $srcdir/$pkgname.confd $pkgdir/etc/conf.d/libvirtd
install -Dm755 $srcdir/$pkgname-guests.initd $pkgdir/etc/init.d/libvirt-guests