mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 54422ff97e)
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Regular → Executable
+2
-2
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/sh
|
||||
#!/usr/bin/bash
|
||||
|
||||
. /etc/profile.d/nvm.sh
|
||||
\. /etc/profile.d/nvm.sh --no-use
|
||||
|
||||
nvm $@
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: nvm
|
||||
Version: 0.40.3
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Node Version Manager
|
||||
License: MIT
|
||||
URL: https://github.com/nvm-sh/nvm
|
||||
@@ -9,7 +9,7 @@ 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)
|
||||
Requires: bash
|
||||
BuildArch: noarch
|
||||
Packager: Gilver E. <rockgrub@disroot.org>
|
||||
|
||||
@@ -26,6 +26,9 @@ POSIX-compliant script to manage multiple active Node.js versions.
|
||||
|
||||
%install
|
||||
install -Dm755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
# Give nvm-exec the correct search directory
|
||||
sed -i 's|DIR=.*|DIR="%{_sysconfdir}/profile.d"|g' nvm-exec
|
||||
install -Dm755 nvm-exec -t %{buildroot}%{_bindir}
|
||||
|
||||
install -Dm644 bash_completion %{buildroot}%{bash_completions_dir}/%{name}.bash
|
||||
|
||||
Reference in New Issue
Block a user