mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-11 06:00:39 +00:00
add: submarine (#851)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "submarine.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
%ifarch x86_64
|
||||
%global arch x86_64
|
||||
%elifarch aarch64
|
||||
%global arch arm64
|
||||
%endif
|
||||
|
||||
Name: submarine
|
||||
Version: 0.1.0
|
||||
Release: 1%?dist
|
||||
Summary: Experimental bootloader for ChomeOS's depthcharge
|
||||
License: GPL-3.0
|
||||
URL: https://github.com/FyraLabs/submarine
|
||||
BuildRequires: make gcc flex bison elfutils-devel parted vboot-utils golang xz bc openssl-devel git golang-github-u-root
|
||||
|
||||
%description
|
||||
An experimental bootloader for ChomeOS's depthcharge.
|
||||
|
||||
Submarine provides a minimal Linux environmemt that lives in a small partition
|
||||
(16mb) on the disk. We use this environment to bootstrap a full Linux system
|
||||
(or a different system if you're brave.)
|
||||
|
||||
%prep
|
||||
git clone --recurse-submodules --shallow-submodules -b v%version %url .
|
||||
|
||||
%build
|
||||
%make_build %arch
|
||||
|
||||
%install
|
||||
mkdir -p %buildroot/boot %buildroot%_datadir/submarine
|
||||
install -Dm644 build/submarine-*.kpart %buildroot/boot/
|
||||
install -Dm644 build/submarine-*.bin %buildroot%_datadir/submarine/
|
||||
|
||||
%files
|
||||
/boot/submarine-*.kpart
|
||||
%_datadir/submarine/submarine-*.bin
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("FyraLabs/submarine"));
|
||||
Reference in New Issue
Block a user