diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 35 insertions, 23 deletions
@@ -1,15 +1,17 @@ pkgbase = edk2-ovmf-macos - pkgdesc = edk2 UEFI firmware with macOS compatibility - pkgver = 1 + pkgdesc = A collection of EDK II UEFI firmware files with macOS compatibility. + pkgver = r74.527588d pkgrel = 1 + epoch = 1 url = https://github.com/foxlet/macOS-Simple-KVM arch = any license = custom + makedepends = jshon conflicts = edk2-ovmf-macboot-git - source = https://github.com/foxlet/macOS-Simple-KVM/raw/091ebfddab9702ad487ac6ed06f4a970e1f19293/firmware/OVMF_CODE.fd - source = OVMF_VARS.fd::https://github.com/foxlet/macOS-Simple-KVM/raw/091ebfddab9702ad487ac6ed06f4a970e1f19293/firmware/OVMF_VARS-1024x768.fd - b2sums = 29d884afab5919cb82edd316bb19aea7da86cb3bee0713f344433b1ed326e189693bd2cb961b1eee1e08612bf471cf606f7405c45169159043ea17beea60d694 - b2sums = 07d9a150ec1d3428902375b07f021f52654a26f760c3c04a2c4ae801985c1a2caff76cc87d81448193b60a93df433f6c52aeb619513a09f96002260208bf10bb + source = https://github.com/foxlet/macOS-Simple-KVM/raw/master/firmware/OVMF_CODE.fd + source = OVMF_VARS.fd::https://github.com/foxlet/macOS-Simple-KVM/raw/master/firmware/OVMF_VARS-1024x768.fd + b2sums = SKIP + b2sums = SKIP pkgname = edk2-ovmf-macos diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..7bd6d13b8bfb --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/
+src/
+*.fd
+
+*.pkg.*
@@ -1,32 +1,37 @@ -# Maintainer: Diab Neiroukh <officiallazerl0rd@gmail.com> +# Maintainer: Diab Neiroukh <lazerl0rd at thezest dot dev> -pkgname=edk2-ovmf-macos -pkgver=1 +pkgname="edk2-ovmf-macos" +pkgver="r74.527588d" pkgrel=1 -pkgdesc="edk2 UEFI firmware with macOS compatibility" -arch=( - "any" +epoch=1 +arch=("any") +pkgdesc="A collection of EDK II UEFI firmware files with macOS compatibility." +license=("custom") +makedepends=( + "jshon" ) conflicts=( "edk2-ovmf-macboot-git" ) url="https://github.com/foxlet/macOS-Simple-KVM" -license=( - "custom" -) source=( - "https://github.com/foxlet/macOS-Simple-KVM/raw/091ebfddab9702ad487ac6ed06f4a970e1f19293/firmware/OVMF_CODE.fd" - "OVMF_VARS.fd::https://github.com/foxlet/macOS-Simple-KVM/raw/091ebfddab9702ad487ac6ed06f4a970e1f19293/firmware/OVMF_VARS-1024x768.fd" + "https://github.com/foxlet/macOS-Simple-KVM/raw/master/firmware/OVMF_CODE.fd" + "OVMF_VARS.fd::https://github.com/foxlet/macOS-Simple-KVM/raw/master/firmware/OVMF_VARS-1024x768.fd" ) b2sums=( - "29d884afab5919cb82edd316bb19aea7da86cb3bee0713f344433b1ed326e189693bd2cb961b1eee1e08612bf471cf606f7405c45169159043ea17beea60d694" - "07d9a150ec1d3428902375b07f021f52654a26f760c3c04a2c4ae801985c1a2caff76cc87d81448193b60a93df433f6c52aeb619513a09f96002260208bf10bb" + "SKIP" + "SKIP" ) -package() +pkgver() { - install -D -m644 OVMF_CODE.fd "$pkgdir/usr/share/edk2-ovmf-macboot/x64/OVMF_CODE.fd" - install -D -m644 OVMF_VARS.fd "$pkgdir/usr/share/edk2-ovmf-macboot/x64/OVMF_VARS.fd" + # I know I'm crazy, but GitHub API go brrr. + printf "r%s.%s" "$(($(echo $(curl -s https://api.github.com/repos/$(echo $url | sed 's/https\?:\/\/github.com\///')/compare/a89c93fd0c62c8b4cbc3c2148771675b6064cf99...$(curl -s https://api.github.com/repos/$(echo $url | sed 's/https\?:\/\/github.com\///')/git/refs/heads/master | jshon -e object | jshon -e sha -u)) | jshon -e total_commits)+1))" "$(echo $(curl -s https://api.github.com/repos/$(echo $url | sed 's/https\?:\/\/github.com\///')/git/refs/heads/master | jshon -e object | jshon -e sha -u) | awk '{print substr($1,0,7)}')" +} - ln -s "$pkgdir/usr/share/edk2-ovmf-macboot" "$pkgdir/usr/share/ovmf-macboot" +package() +{ + install -D -m644 "OVMF_CODE.fd" "$pkgdir/usr/share/edk2-ovmf-macboot/x64/OVMF_CODE.fd" + install -D -m644 "OVMF_VARS.fd" "$pkgdir/usr/share/edk2-ovmf-macboot/x64/OVMF_VARS.fd" + ln -s "$pkgdir/usr/share/edk2-ovmf-macboot" "$pkgdir/usr/share/ovmf-macboot" } |