forked from ports/contrib
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
# Description: EFI "BIOS" for qemu : -bios /usr/share/qemu-efi-bin/MACHINE.fd
|
|
# URL: https://github.com/tianocore/edk2)
|
|
# Really a conglomerate of
|
|
# - https://archlinux.org/packages/extra/any/edk2-ovmf
|
|
# - https://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/latest/QEMU-ARM/RELEASE_CLANG38/QEMU_EFI.fd
|
|
# - https://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/latest/QEMU-AARCH64/RELEASE_CLANG38/QEMU_EFI.fd
|
|
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
|
|
|
|
name=qemu-efi-bin
|
|
version=202205-1
|
|
realn=edk2-ovmf
|
|
lindate=20220507
|
|
release=2
|
|
source=(
|
|
https://ftp.sdaoden.eu/${realn}-${version}-any.pkg.tar.zst
|
|
https://ftp.sdaoden.eu/qemu-aarch64-efi-${lindate}.fd
|
|
https://ftp.sdaoden.eu/qemu-arm-efi-${lindate}.fd
|
|
)
|
|
|
|
build() {
|
|
[ -d usr ] || # TODO pkgmk native support
|
|
bsdtar -xf $(basename "$source")
|
|
|
|
mkdir -p "${PKG}"/usr/share/${name}
|
|
|
|
cp -r usr/share/${realn}/ia32/OVMF.fd \
|
|
"${PKG}"/usr/share/${name}/i386.fd
|
|
cp -r usr/share/${realn}/x64/OVMF.fd "${PKG}"/usr/share/${name}/x86_64.fd
|
|
cp -r qemu-aarch64-efi-${lindate}.fd "${PKG}"/usr/share/${name}/aarch64.fd
|
|
cp -r qemu-arm-efi-${lindate}.fd "${PKG}"/usr/share/${name}/arm.fd
|
|
chmod 0644 "${PKG}"/usr/share/${name}/*.*
|
|
}
|
|
|
|
# s-sh-mode
|