iglunix/linux/limine/build.sh

31 lines
864 B
Bash
Raw Normal View History

2021-09-16 10:37:33 +00:00
pkgname=limine
pkgver=2.55
mkdeps="nasm:llvm"
fetch() {
curl -L "https://github.com/limine-bootloader/limine/releases/download/v$pkgver/limine-v$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv $pkgname-v$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
2021-09-16 11:14:54 +00:00
gmake limine-bios bin/limine-install CC="clang" TOOLCHAIN="llvm" TOOLCHAIN_CC="clang" TOOLCHAIN_LD="ld.lld" -j1
2021-09-16 10:37:33 +00:00
}
package() {
cd $pkgname-$pkgver
mkdir -p $pkgdir/usr/sbin/
install -m 755 ./bin/limine-install $pkgdir/usr/sbin/
mkdir -p $pkgdir/usr/share/limine/
install -m 644 ./bin/limine-cd.bin $pkgdir/usr/share/limine/
install -m 644 ./bin/limine-hdd.bin $pkgdir/usr/share/limine/
install -m 644 ./bin/limine-pxe.bin $pkgdir/usr/share/limine/
install -m 644 ./bin/limine.sys $pkgdir/usr/share/limine/
}
license() {
cd $pkgname-$pkgver
cat LICENSE.md
}