iglunix/pkgs/tiny-linux-bootloader/build.sh
2021-02-04 18:33:58 +01:00

29 lines
482 B
Bash

pkgname=tiny-linux-bootloader
pkgver=master
fetch() {
curl -L "https://github.com/owenson/tiny-linux-bootloader/archive/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cd $pkgname-$pkgver
patch -p1 < ../../build.patch
}
package() {
cd $pkgname-$pkgver
mkdir /tiny-linux-bootloader
CURR_DIR=$(pwd)
cd ./../../../../
./geninitrd.sh
cd $CURR_DIR
./build.sh
cd ./../../../../
./createimg.sh
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}