diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..cf03397 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +CARGO ?= cargo +PREFIX ?= /usr/local +DESTDIR ?= +CODENAME ?= nyiotxa +CARGO_BUILD_FLAGS ?= --release --locked + +nyi: $(wildcard src/*.rs) Cargo.toml Cargo.lock VERSION + NYI_CODENAME='$(CODENAME)' $(CARGO) build $(CARGO_BUILD_FLAGS) + cp -f target/release/nyi $@ + +install: nyi + install -d $(DESTDIR)$(PREFIX)/bin + install -m 755 nyi $(DESTDIR)$(PREFIX)/bin/nyi + +check: nyi + ./nyi --version + ./nyi --no-info --frames 1 >/dev/null + +ISH_TARGET ?= i586-unknown-linux-musl +ish: + rustup target add $(ISH_TARGET) + NYI_CODENAME='$(CODENAME)' $(CARGO) build $(CARGO_BUILD_FLAGS) --target $(ISH_TARGET) + install -d dist + install -m 755 target/$(ISH_TARGET)/release/nyi dist/nyi-ish + +clean: + $(CARGO) clean + rm -f nyi + rm -rf dist + +.PHONY: install check ish clean diff --git a/_service b/_service new file mode 100755 index 0000000..ec14857 --- /dev/null +++ b/_service @@ -0,0 +1,8 @@ + + + github.com + https + /elwrcl/nyi/archive/refs/heads/main.tar.gz + nyi-1.0.0.tar.gz + + diff --git a/nyi.spec b/nyi.spec new file mode 100755 index 0000000..82b3227 --- /dev/null +++ b/nyi.spec @@ -0,0 +1,38 @@ +Name: nyi +Version: 1.0.0 +Release: 1.%(date +%%Y%%m%%d)%{?dist} +Summary: Animated 3D fetch + +License: ISC +URL: https://github.com/elwrcl/nyi +Source0: %{url}/archive/refs/heads/main.tar.gz#/nyi-%{version}.tar.gz + +BuildRequires: cargo +BuildRequires: rust >= 1.74 +BuildRequires: make + +Recommends: fastfetch +Recommends: pciutils + +%description +donut.c inspired fetch tool with shading. +System info is gathered natively from /proc, /sys, and GTK +config — no external runtime dependencies required. + +%prep +%autosetup -n nyi-main + +%build +%make_build + +%install +%make_install DESTDIR=%{buildroot} PREFIX=%{_prefix} + +%files +%doc README.md +%license LICENSE +%{_bindir}/nyi + +%changelog +* Sat Aug 15 2026 elwrcl - 1.0.0-1 +- Initial package.