jobextra/limine/PKGBUILD

70 lines
2.5 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# reference to the implementation done by mobinmob in abyss
# https://github.com/mobinmob/void-mklive/tree/abyss
# https://github.com/void-linux/void-mklive/issues/313
pkgname=limine
pkgver=4.20230325.0
pkgrel=02
pkgdesc="An advanced, portable, multiprotocol bootloader"
url="https://limine-bootloader.org/"
depends=('glibc')
source=("https://github.com/limine-bootloader/limine/releases/download/v${pkgver}/limine-${pkgver}.tar.xz"
limine.boot.protocol
limine.barebones.wiki
limine.cfg::https://github.com/limine-bootloader/limine/raw/trunk/test/limine.cfg
bg.jpg::https://raw.githubusercontent.com/limine-bootloader/limine/trunk/test/bg.jpg
CONFIG.md::https://github.com/limine-bootloader/limine/raw/trunk/CONFIG.md)
makedepends=('nasm' 'mtools' 'llvm' 'lld' 'clang')
build() {
cd "$pkgname-$pkgver"
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--libdir=/usr/lib \
--mandir=/usr/share/man \
--docdir=/usr/share/doc \
--enable-bios-cd \
--enable-bios-pxe \
--enable-bios \
--disable-uefi-ia32 \
--enable-uefi-x86-64 \
--disable-uefi-aarch64 \
--enable-uefi-cd \
TOOLCHAIN_FOR_TARGET=llvm
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mkdir -p -m755 "$pkgdir/boot/limine"
install -Dm644 $srcdir/$pkgname-$pkgver/bin/limine.sys "$pkgdir/boot/limine/"
install -Dm644 $srcdir/bg.jpg "$pkgdir/boot/limine/"
install -Dm644 $srcdir/limine.cfg "$pkgdir/boot/limine/"
install -Dm644 $srcdir/CONFIG.md "$pkgdir/boot/limine/"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD')
sha256sums=(d6cf3b67a06901e20495dae6308e344301e2ae25c42c08a64e694d9a1caae4bc # limine-4.20230325.0.tar.xz
8964016f9aaaf246d92433f6849c2e228483c7b9716d04afef234d9bb556ca8a # limine.boot.protocol
aba179176961f3fece88672413f98d0ef93e9671f9d25846335aa1ae8e806ebb # limine.barebones.wiki
bfbd4b5e8d318cb6cb91c1e1311525f65046943edb642aa411bea94a522f3d32 # limine.cfg
15df8e06872a6cb89dfad3f99ad2b255dd1a54576e4343c954975e2ea48f28ab # bg.jpg
929fdf6d57dd490ab4bf18ad0415318eeeafe35dae0095c3b477ad32c3f32919) # CONFIG.md
## 90f3d33cb7e0c88eb046e6540c3de34b6721c893d366e3bbf75ffaa156cec8b1 limine-4.20230325.0-02-x86_64.pkg.tar.lz