From ceebfddd3435895786c759c21765ef3b17e7225c Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Mon, 18 Apr 2022 20:18:22 +0000 Subject: [PATCH] add oslo --- base/oslo/build.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 base/oslo/build.sh diff --git a/base/oslo/build.sh b/base/oslo/build.sh new file mode 100644 index 0000000..947c8f9 --- /dev/null +++ b/base/oslo/build.sh @@ -0,0 +1,39 @@ +pkgname=oslo +pkgver=main + +fetch() { + curl -L "https://github.com/iglunix/oslo/archive/refs/heads/main.tar.gz" -o $pkgname-$pkgver.tar.gz + tar -xf $pkgname-$pkgver.tar.gz +} + +build() { + cd $pkgname-$pkgver + make ARCH=$ARCH +} + +case $ARCH in + aarch64) + _a=aa64 + ;; + x86_64) + _a=x64 + ;; + *) + exit 1 + ;; +esac + +package() { + cd $pkgname-$pkgver + install -Dm755 oslo.efi $pkgdir/boot/efi/boot/boot$_a.efi + install -Dm644 efi/oslo/entries.ini $pkgdir/boot/efi/oslo/entries.ini +} + +license() { + cd $pkgname-$pkgver + cat license.txt +} + +backup() { + echo boot/efi/oslo/entries.ini +}