package created using the webbuild interface [release 10.0.52-1mamba;Tue Nov 26 2024]

This commit is contained in:
Silvan Calarco 2024-11-27 10:02:17 +01:00
parent 03b9c442cd
commit 20aee80d31
2 changed files with 92 additions and 0 deletions

View File

@ -1,2 +1,3 @@
# penguins-eggs # penguins-eggs
A console tool that allows you to remaster your system and redistribute it as live images on USB sticks or via PXE.

91
penguins-eggs.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 10.0.52-1mamba
- package created using the webbuild interface