From 9c2c6b7e03bca9a2133c0ee3c3d4da56fdea01c6 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Mon, 24 Aug 2020 23:56:32 +0300 Subject: [PATCH] ovmf: fix installation paths --- packages/ovmf/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ovmf/build.sh b/packages/ovmf/build.sh index df68e221f..fb1ebc5ee 100644 --- a/packages/ovmf/build.sh +++ b/packages/ovmf/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.tianocore.org/ TERMUX_PKG_DESCRIPTION="Open Virtual Machine Firmware" TERMUX_PKG_LICENSE="custom" TERMUX_PKG_VERSION=20200515.1437.g5a6d764e1d +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=(https://www.kraxel.org/repos/jenkins/edk2/edk2.git-aarch64-0-${TERMUX_PKG_VERSION}.noarch.rpm https://www.kraxel.org/repos/jenkins/edk2/edk2.git-arm-0-${TERMUX_PKG_VERSION}.noarch.rpm https://www.kraxel.org/repos/jenkins/edk2/edk2.git-ovmf-ia32-0-${TERMUX_PKG_VERSION}.noarch.rpm @@ -33,7 +34,11 @@ termux_step_make_install() { local i for i in aarch64 arm ia32 x86_64; do - bsdtar xf ${TERMUX_PKG_CACHEDIR}/edk2-${i}.rpm -C $TERMUX_PREFIX + bsdtar xf ${TERMUX_PKG_CACHEDIR}/edk2-${i}.rpm -C $TERMUX_PREFIX/../ + done + + for i in $TERMUX_PREFIX/share/qemu/firmware/*.json; do + sed -i "s@/usr@$TERMUX_PREFIX@g" $i done }