Skip to content

Commit

Permalink
add: katsu (#745)
Browse files Browse the repository at this point in the history
* add: katsu

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* a

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* fix readme

Signed-off-by: madomado <[email protected]>

* quotes

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* nyaaaaaaaaaaaaaa

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* quotes

Signed-off-by: madomado <[email protected]>

* もう許してよおおおおお

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* files???

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

* Update katsu.spec

Signed-off-by: madomado <[email protected]>

---------

Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Oct 19, 2023
1 parent 66a7246 commit c64f37e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/tools/katsu/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "katsu.spec"
}
}
37 changes: 37 additions & 0 deletions anda/tools/katsu/katsu.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
%define debug_package %nil

Name: katsu
Version: 0.1.0
Release: 1%?dist
Summary: The vicious image builder
License: MIT
URL: https://github.com/FyraLabs/katsu
Source0: %url/archive/refs/tags/%version.tar.gz
Requires: xorriso dracut limine grub2 systemd-devel squashfs-tools
Requires: dracut-live dracut-config-generic dracut-config-rescue grub2-tools-extra dracut-squash
BuildRequires: cargo rust-packaging pkgconfig(libudev) clang-devel

%description
Katsu is a tool for building bootable images from RPM based systems.
It is an alternative to Lennart Poettering's mkosi tool, designed to be robust,
fast, and easy to use while still providing many output formats.

%prep
%autosetup

%build
%(echo "%{cargo_build}" | sed "s@--profile rpm@--profile release@g" | sed "s@-j @@")

%install
export CARGO_INSTALL_ROOT=%buildroot%_prefix
cargo install --path .
rm %buildroot%_prefix/.crates.toml %buildroot%_prefix/.crates2.json

%files
%doc README.md
%license LICENSE
%_bindir/katsu


%changelog
%autochangelog
1 change: 1 addition & 0 deletions anda/tools/katsu/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("FyraLabs/katsu"));

0 comments on commit c64f37e

Please sign in to comment.