iglunix/old/tiny-linux-bootloader/build.sh

34 lines
596 B
Bash
Raw Normal View History

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
2021-02-04 17:33:58 +00:00
patch -p1 < ../../build.patch
patch -p1 < ../../bsect.patch
2021-04-18 10:13:32 +00:00
patch -p1 < ../../remove-dead.patch
}
package() {
cd $pkgname-$pkgver
2021-02-13 13:56:28 +00:00
rm -rf /tiny-linux-bootloader
mkdir /tiny-linux-bootloader
CURR_DIR=$(pwd)
2021-02-04 17:33:58 +00:00
cd ./../../../../
./geninitrd.sh
2021-02-04 17:33:58 +00:00
cd $CURR_DIR
./build.sh
2021-02-04 17:33:58 +00:00
cd ./../../../../
./createimg.sh
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}