This commit is contained in:
Ella Stanforth 2022-04-18 20:18:22 +00:00
parent 1ae568f6a7
commit ceebfddd34
1 changed files with 39 additions and 0 deletions

39
base/oslo/build.sh Normal file
View File

@ -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
}