From 1120d897a04d1cd40c076cd7002a2ec2fc0b2ddd Mon Sep 17 00:00:00 2001
From: psykose <alice@ayaya.dev>
Date: Tue, 7 Jun 2022 00:23:22 +0000
Subject: [PATCH] testing/limine: new aport

https://limine-bootloader.org
Advanced multiprotocol x86/x86_64 BIOS/UEFI Bootloader
---
 testing/limine/APKBUILD | 77 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)
 create mode 100644 testing/limine/APKBUILD

diff --git a/testing/limine/APKBUILD b/testing/limine/APKBUILD
new file mode 100644
index 000000000000..0ed9037de432
--- /dev/null
+++ b/testing/limine/APKBUILD
@@ -0,0 +1,77 @@
+# Maintainer: psykose <alice@ayaya.dev>
+pkgname=limine
+pkgver=3.5.3
+pkgrel=0
+pkgdesc="Advanced multiprotocol x86/x86_64 BIOS/UEFI Bootloader"
+url="https://limine-bootloader.org"
+arch="x86 x86_64"
+license="BSD-2-Clause"
+makedepends="
+	mtools
+	nasm
+	"
+subpackages="
+	$pkgname-dev
+	$pkgname-cd:_cd
+	$pkgname-deploy
+	$pkgname-pxe
+	$pkgname-sys
+	$pkgname-32:_32
+	$pkgname-64:_64
+	"
+source="https://github.com/limine-bootloader/limine/releases/download/v$pkgver/limine-$pkgver.tar.xz"
+options="!check" # no tests in tarball
+
+build() {
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr
+	make
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+}
+
+deploy() {
+	pkgdesc="$pkgdesc (limine-deploy bios installer)"
+
+	amove usr/bin/limine-deploy
+}
+
+_cd() {
+	pkgdesc="$pkgdesc (cd/efi files)"
+	depends="$pkgname-sys"
+
+	amove usr/share/limine/limine-cd*.bin
+}
+
+pxe() {
+	pkgdesc="$pkgdesc (pxe executable)"
+	depends="$pkgname-sys"
+
+	amove usr/share/limine/limine-pxe.bin
+}
+
+sys() {
+	pkgdesc="$pkgdesc (sys file)"
+
+	amove usr/share/limine/limine.sys
+}
+
+_32() {
+	pkgdesc="$pkgdesc (32-bit uefi image)"
+
+	amove usr/share/limine/BOOTIA32.EFI
+}
+
+_64() {
+	pkgdesc="$pkgdesc (64-bit uefi image)"
+
+	amove usr/share/limine/BOOTX64.EFI
+}
+
+sha512sums="
+ac5985632ddd8dae5b4b5f718336284682b2b113de58fdb657cb06d9efca02229048299ea0930c700398a8d53d1003cbe5507f107e5c5fd50efd22a9534a249e  limine-3.5.3.tar.xz
+"
-- 
GitLab