add: nstool (#3367) (#3446)

* add: nstool

* there are no f***ing docs

(cherry picked from commit d0fd155c68)

Co-authored-by: sadlerm4 <sad_lerm@hotmail.com>
This commit is contained in:
Raboneko
2025-02-19 10:28:17 -08:00
committed by GitHub
parent eb77a7cef3
commit 0601401588
3 changed files with 42 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "nstool.spec"
}
}
+36
View File
@@ -0,0 +1,36 @@
%global debug_package %{nil}
%global ver v1.9.2
%global sanitized_ver %(echo "$( tr -d 'v' <<< %{ver} )")
Name: nstool
Version: %{sanitized_ver}
Release: 1%{?dist}
Summary: General purpose read/extract tool for Nintendo Switch file formats
License: MIT
URL: https://github.com/jakcron/nstool
Packager: sadlerm <lerm@chromebooks.lol>
BuildRequires: make gcc gcc-c++
BuildRequires: anda-srpm-macros
%description
General purpose reading/extraction tool for Nintendo Switch file formats.
%prep
%git_clone %{url} %{ver}
%build
%make_build deps
%make_build program
%install
install -Dm755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
%doc README.md SWITCH_KEYS.md
%{_bindir}/%{name}
+1
View File
@@ -0,0 +1 @@
rpm.global("ver", gh_tag("jakcron/nstool"));