summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorVladimir Panteleev2017-03-29 20:17:14 +0000
committerVladimir Panteleev2017-03-29 20:17:14 +0000
commit5302d22c499f90ba1d720d9d249093e4ce88d10c (patch)
treeb73fa17f5cd894306915f29d9d1f18497fc392c0 /PKGBUILD
downloadaur-5302d22c499f90ba1d720d9d249093e4ce88d10c.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3002066e689
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
+
+pkgname=edk2-ovmf-macboot-git
+pkgver=r21417.30f2b3985d
+pkgrel=1
+pkgdesc="edk2 UEFI firmware with macOS compatibility fixes"
+arch=('any')
+url="https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/"
+license=('BSD')
+depends=()
+makedepends=('git' 'nasm' 'iasl')
+optdepends=()
+source=("git+https://github.com/gsomlo/edk2#branch=macboot")
+md5sums=('SKIP')
+options=('!makeflags')
+
+pkgver() {
+ cd "$srcdir/edk2"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/edk2"
+ make -C BaseTools
+ bash -c '. edksetup.sh BaseTools && build -a X64 -t GCC5 -p OvmfPkg/OvmfPkgX64.dsc'
+}
+
+package() {
+ cd "$srcdir/edk2"
+ install -D -m644 -t "$pkgdir/usr/share/ovmf-macboot" "$(find ./Build/ -name OVMF.fd)"
+}