-
-
Notifications
You must be signed in to change notification settings - Fork 168
add: asdf-vm
#6631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
add: asdf-vm
#6631
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7aaa044
add: asdf-vm
db5618a
refactor: asdf-vm package
a216aba
Merge branch 'master' into add-asdf-vm
dab4a76
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fbdd6f9
Remove pkgrel from asdf-vm.pacscript
niontrix 3fe6596
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e1ceba4
[asdf-vm] add `repology` field
0dd4db9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0044e1e
Fix unclosed string
f2dfe17
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,7 @@ ardour-git | |
| arduino-cli-bin | ||
| arduino-ide-bin | ||
| armcord-deb | ||
| asdf-vm | ||
| aseprite | ||
| awesome-git | ||
| aws-cli-v2-bin | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| pkgbase = asdf-vm | ||
| pkgver = 0.14.1 | ||
| pkgrel = 1 | ||
| pkgdesc = Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more | ||
| url = https://asdf-vm.com | ||
| arch = any | ||
| depends = curl | ||
| depends = git | ||
| optdepends = build-essential: Array of tools to build software | ||
| optdepends = bash-completion: For completions to work in Bash | ||
| optdepends = libncurses5-dev: Text-based UI library for terminal applications | ||
| optdepends = libncurses-dev: Text-based UI library for terminal applications | ||
| optdepends = unzip: Needed by some plugins, like Elixir | ||
| license = MIT | ||
| source = asdf-vm-0.14.1.tar.gz::https://github.com/asdf-vm/asdf/archive/v0.14.1.tar.gz | ||
| sha256sums = 308a7f2e1eb551e435458974fbe37dcef1c940e961ad40e47ae78cabc154543e | ||
|
|
||
| pkgname = asdf-vm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| pkgname=asdf-vm | ||
| pkgver=0.14.1 | ||
| pkgrel=1 | ||
| pkgdesc='Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more' | ||
| arch=('any') | ||
| url='https://asdf-vm.com' | ||
| license=('MIT') | ||
| depends=( | ||
| 'curl' | ||
| 'git' | ||
| ) | ||
| optdepends=( | ||
| 'build-essential: Array of tools to build software' | ||
| 'bash-completion: For completions to work in Bash' | ||
| 'libncurses5-dev: Text-based UI library for terminal applications' | ||
| 'libncurses-dev: Text-based UI library for terminal applications' | ||
| 'unzip: Needed by some plugins, like Elixir' | ||
| ) | ||
| source=("${pkgname}-${pkgver}.tar.gz::https://github.com/asdf-vm/asdf/archive/v${pkgver}.tar.gz") | ||
| sha256sums=('308a7f2e1eb551e435458974fbe37dcef1c940e961ad40e47ae78cabc154543e') | ||
|
|
||
| package() { | ||
| cd "asdf-${pkgver}" | ||
|
|
||
| local dst="${pkgdir}/opt/${pkgname}" | ||
| mkdir -p "${dst}" | ||
|
|
||
| cp -r bin "${dst}" | ||
| cp -r lib "${dst}" | ||
| cp asdf.elv "${dst}" | ||
| cp asdf.fish "${dst}" | ||
| cp asdf.nu "${dst}" | ||
| cp asdf.sh "${dst}" | ||
| cp defaults "${dst}" | ||
| cp help.txt "${dst}" | ||
| cp version.txt "${dst}" | ||
This conversation was marked as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| local usrshare="${pkgdir}/usr/share" | ||
|
|
||
| local docdir="${usrshare}/doc/${pkgname}" | ||
| mkdir -p "${docdir}" | ||
| cp help.txt "${docdir}" | ||
|
|
||
| # https://aur.archlinux.org/packages/asdf-vm#comment-886293 | ||
| find . \ | ||
| -path ./.github \ | ||
| -prune \ | ||
| -o \ | ||
| -name '*.md' \ | ||
| -exec cp --parents '{}' "${docdir}" \; | ||
|
|
||
| install -Dm644 -t "${usrshare}/licenses/${pkgname}/" LICENSE | ||
|
|
||
| cd completions | ||
|
|
||
| install -Dm644 asdf.bash "${usrshare}/bash-completion/completions/asdf" | ||
| install -Dm644 asdf.fish "${usrshare}/fish/vendor_completions.d/asdf.fish" | ||
| install -Dm644 _asdf "${usrshare}/zsh/site-functions/_asdf" | ||
| } | ||
|
|
||
| post_install() { | ||
| cat << EOF | ||
|
|
||
| Add the following line to your .bashrc or .profile: | ||
| . /opt/asdf-vm/asdf.sh | ||
|
|
||
| For more information see the official instructions [0]. | ||
| Especially the section titled "YOUR_SHELL & Pacman". | ||
|
|
||
| [0] https://asdf-vm.com/guide/getting-started.html#_3-install-asdf | ||
|
|
||
| EOF | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.