mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-02 09:52:18 +00:00
e1b70ff486
I can't believe I didn't notice I typo'd the permission number.
(cherry picked from commit 18d19b8ccb)
Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
45 lines
1.2 KiB
RPMSpec
45 lines
1.2 KiB
RPMSpec
Name: nvm
|
|
Version: 0.40.3
|
|
Release: 3%{?dist}
|
|
Summary: Node Version Manager
|
|
License: MIT
|
|
URL: https://github.com/nvm-sh/nvm
|
|
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
|
|
Source1: binscript
|
|
# Make sure NVM always chooses "$HOME/.nvm" as the directory for local files unless explicitly set otherwise
|
|
Patch0: nvm-always-use-default-dir.patch
|
|
# Only works with POSIX compliant shells
|
|
Requires: (bash or dash or ksh or zsh)
|
|
BuildArch: noarch
|
|
Packager: Gilver E. <rockgrub@disroot.org>
|
|
|
|
%description
|
|
POSIX-compliant script to manage multiple active Node.js versions.
|
|
|
|
%pkg_completion -bz
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
# Anyone home?
|
|
|
|
%install
|
|
install -Dm755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
|
|
|
|
install -Dm644 bash_completion %{buildroot}%{bash_completions_dir}/%{name}.bash
|
|
# Another cursed script that uses bashcompinit to use one file for Bash and Zsh completions
|
|
install -Dm644 bash_completion %{buildroot}%{zsh_completions_dir}/_%{name}
|
|
|
|
install -Dm644 %{name}.sh -t %{buildroot}%{_sysconfdir}/profile.d
|
|
|
|
%files
|
|
%license LICENSE.md
|
|
%doc README.md
|
|
%{_bindir}/%{name}
|
|
%{_sysconfdir}/profile.d/%{name}.sh
|
|
|
|
%changelog
|
|
* Sun Nov 30 2025 Gilver E. <rockgrub@disroot.org> - 0.40.3-1
|
|
- Initial package
|