From 20aee80d3176fdcb43ae4dc8b23a59449c31a80a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 27 Nov 2024 10:02:17 +0100 Subject: [PATCH] package created using the webbuild interface [release 10.0.52-1mamba;Tue Nov 26 2024] --- README.md | 1 + penguins-eggs.spec | 91 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 penguins-eggs.spec diff --git a/README.md b/README.md index 21e7963..770018d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # penguins-eggs +A console tool that allows you to remaster your system and redistribute it as live images on USB sticks or via PXE. diff --git a/penguins-eggs.spec b/penguins-eggs.spec new file mode 100644 index 0000000..cf65d92 --- /dev/null +++ b/penguins-eggs.spec @@ -0,0 +1,91 @@ +Name: penguins-eggs +Version: 10.0.52 +Release: 1mamba +Summary: A console tool that allows you to remaster your system and redistribute it as live images on USB sticks or via PXE +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://penguins-eggs.net/ +Source: https://github.com/pieroproietti/penguins-eggs.git/v%{version}/penguins-eggs-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: pnpm +Requires: nodejs + +%description +A console tool that allows you to remaster your system and redistribute it as live images on USB sticks or via PXE. + +#% debug_package + +%prep +%setup -q + +%build +# Based on Arch Linux pkgbuild +pnpm install +pnpm build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -Dm644 .oclif.manifest.json package.json -t %{buildroot}%{_prefix}/lib/%{name} +cp -r \ + addons \ + assets \ + bin \ + conf \ + ipxe \ + dracut \ + dist \ + eui \ + mkinitcpio \ + mkinitfs \ + node_modules \ + scripts \ + syslinux \ + %{buildroot}%{_prefix}/lib/%{name} + +# Install bash-completion files +install -d %{buildroot}%{_datadir}/bash-completion/completions +ln -s /usr/lib/%{name}/scripts/eggs.bash \ + %{buildroot}%{_datadir}/bash-completion/completions/ + +# Install zsh-completion files +install -d %{buildroot}%{_datadir}/zsh/functions/Completion/Zsh/ +ln -s ../lib/%{name}/scripts/_eggs \ + %{buildroot}%{_datadir}/zsh/functions/Completion/Zsh/ + +# Install man page +install -D -m0644 manpages/doc/man/eggs.1.gz -t %{buildroot}%{_mandir}/man1/ + +# Install desktop file +install -D -m0644 assets/%{name}.desktop -t %{buildroot}%{_datadir}/applications/ + +# Install icon +install -D -m0644 assets/eggs.png -t %{buildroot}%{_datadir}/pixmaps/ + +# Symlink executable +install -d %{buildroot}%{_bindir} +ln -s ../lib/%{name}/bin/run.js %{buildroot}%{_bindir}/eggs + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/eggs +%{_datadir}/applications/penguins-eggs.desktop +%dir %{_prefix}/lib/penguins-eggs +%{_prefix}/lib/penguins-eggs/.oclif.manifest.json +%{_prefix}/lib/penguins-eggs/* +%{_datadir}/bash-completion/completions/eggs.bash +%{_datadir}/zsh/functions/Completion/Zsh/_eggs +%{_datadir}/pixmaps/eggs.png +%{_mandir}/man1/eggs.1* +%doc README.md + +%changelog +* Tue Nov 26 2024 Silvan Calarco 10.0.52-1mamba +- package created using the webbuild interface