From 536e567476292fdea18b862b2e4b7fddd26bd31e Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Tue, 5 Mar 2019 12:58:18 +0000 Subject: testing/ocaml-libvirt: attempt to fix build on aarch64 and ppc64le --- testing/ocaml-libvirt/APKBUILD | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'testing/ocaml-libvirt') diff --git a/testing/ocaml-libvirt/APKBUILD b/testing/ocaml-libvirt/APKBUILD index a6658f1b73..43c4c177ee 100644 --- a/testing/ocaml-libvirt/APKBUILD +++ b/testing/ocaml-libvirt/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Fernando Casas Schossow pkgname=ocaml-libvirt pkgver=0.6.1.4 -pkgrel=0 +pkgrel=1 pkgdesc="OCaml binding for libvirt" url="http://libvirt.org/ocaml/" arch="aarch64 ppc64le x86_64" # restricted by ocaml @@ -23,10 +23,19 @@ source="https://libvirt.org/sources/ocaml/$pkgname-$pkgver.tar.gz builddir="$srcdir/$pkgname-$pkgver" options="!check" # there is no test suite/unit tests +prepare() { + default_prepare + update_config_sub +} + build() { cd "$builddir" export OCAMLPARAM="safe-string=0,_" - ./configure --prefix=/usr + ./configure \ + --host=$CHOST \ + --build=$CBUILD \ + --target=$CTARGET \ + --prefix=/usr make -C libvirt all make opt } -- cgit v1.2.3