aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorGene Carlson <kvngncrlsn@gmail.com>2023-05-14 17:19:12 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-05-15 11:03:29 +0700
commitc24c2a44c4c462dc81ac950f9b2297b0011a9203 (patch)
tree238738cd5c2ccefe7ce750d42759d83f376462ff /system
parentf6767c77cd16e8931af05f76bbc948bb2b7fe65d (diff)
system/edk2-ovmf: Fix .json files.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/edk2-ovmf/edk2-ovmf.SlackBuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/system/edk2-ovmf/edk2-ovmf.SlackBuild b/system/edk2-ovmf/edk2-ovmf.SlackBuild
index ebdb7ed8665d3..465f1588baf57 100644
--- a/system/edk2-ovmf/edk2-ovmf.SlackBuild
+++ b/system/edk2-ovmf/edk2-ovmf.SlackBuild
@@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=edk2-ovmf
VERSION=${VERSION:-20230301}
-FEDVER=${FEDVER:-f80f052277c8-3.fc38}
-BUILD=${BUILD:-1}
+FEDVER=${FEDVER:-gitf80f052277c8-3.fc38}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -53,8 +53,8 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
-rpm2cpio $CWD/$PRGNAM-$VERSION\git$FEDVER.noarch.rpm | cpio -idmv
-rpm2cpio $CWD/$PRGNAM-ia32-$VERSION\git$FEDVER.noarch.rpm | cpio -idmv
+rpm2cpio $CWD/$PRGNAM-$VERSION$FEDVER.noarch.rpm | cpio -idmv
+rpm2cpio $CWD/$PRGNAM-ia32-$VERSION$FEDVER.noarch.rpm | cpio -idmv
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -67,6 +67,8 @@ cp -r usr/share/edk2/ovmf $PKG/usr/share/edk2-ovmf-x64
cp -r usr/share/edk2/ovmf-ia32 $PKG/usr/share/edk2-ovmf-ia32
# Firmware-loading specifications; the files do not conflict with Qemu.
cp -r usr/share/qemu $PKG/usr/share/qemu
+sed -i 's|edk2/ovmf|edk2-ovmf-x64|g' $PKG/usr/share/qemu/firmware/*x64*
+sed -i 's|edk2/ovmf|edk2-ovmf|g' $PKG/usr/share/qemu/firmware/*ia32*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild