Skip to content

Commit a8403ad

Browse files
authored
add: asdf-vm (#6631)
1 parent a3f9287 commit a8403ad

File tree

4 files changed

+103
-0
lines changed

4 files changed

+103
-0
lines changed

packagelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ apx-git
2121
ardour-git
2222
arduino-cli-bin
2323
arduino-ide-bin
24+
asdf-vm
2425
aseprite
2526
awesome-git
2627
aws-cli-v2-bin

packages/asdf-vm/.SRCINFO

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pkgbase = asdf-vm
2+
pkgver = 0.14.1
3+
pkgdesc = Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
4+
url = https://asdf-vm.com
5+
arch = any
6+
depends = curl
7+
depends = git
8+
optdepends = build-essential: Array of tools to build software
9+
optdepends = bash-completion: For completions to work in Bash
10+
optdepends = libncurses5-dev: Text-based UI library for terminal applications
11+
optdepends = libncurses-dev: Text-based UI library for terminal applications
12+
optdepends = unzip: Needed by some plugins, like Elixir
13+
license = MIT
14+
repology = project: asdf-vm
15+
source = asdf-vm-0.14.1.tar.gz::https://github.com/asdf-vm/asdf/archive/v0.14.1.tar.gz
16+
sha256sums = 308a7f2e1eb551e435458974fbe37dcef1c940e961ad40e47ae78cabc154543e
17+
18+
pkgname = asdf-vm

packages/asdf-vm/asdf-vm.pacscript

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
pkgname=asdf-vm
2+
pkgver=0.14.1
3+
pkgdesc='Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more'
4+
repology=("project: ${pkgname}")
5+
arch=('any')
6+
url='https://asdf-vm.com'
7+
license=('MIT')
8+
depends=(
9+
'curl'
10+
'git'
11+
)
12+
optdepends=(
13+
'build-essential: Array of tools to build software'
14+
'bash-completion: For completions to work in Bash'
15+
'libncurses5-dev: Text-based UI library for terminal applications'
16+
'libncurses-dev: Text-based UI library for terminal applications'
17+
'unzip: Needed by some plugins, like Elixir'
18+
)
19+
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/asdf-vm/asdf/archive/v${pkgver}.tar.gz")
20+
sha256sums=('308a7f2e1eb551e435458974fbe37dcef1c940e961ad40e47ae78cabc154543e')
21+
22+
package() {
23+
cd "asdf-${pkgver}"
24+
25+
local dst="${pkgdir}/opt/${pkgname}"
26+
mkdir -p "${dst}"
27+
28+
cp -r bin lib asdf.elv asdf.fish asdf.nu asdf.sh defaults help.txt version.txt "${dst}"
29+
30+
local usrshare="${pkgdir}/usr/share"
31+
32+
local docdir="${usrshare}/doc/${pkgname}"
33+
mkdir -p "${docdir}"
34+
cp help.txt "${docdir}"
35+
36+
# https://aur.archlinux.org/packages/asdf-vm#comment-886293
37+
find . \
38+
-path ./.github \
39+
-prune \
40+
-o \
41+
-name '*.md' \
42+
-exec cp --parents '{}' "${docdir}" \;
43+
44+
install -Dm644 -t "${usrshare}/licenses/${pkgname}/" LICENSE
45+
46+
cd completions
47+
48+
install -Dm644 asdf.bash "${usrshare}/bash-completion/completions/asdf"
49+
install -Dm644 asdf.fish "${usrshare}/fish/vendor_completions.d/asdf.fish"
50+
install -Dm644 _asdf "${usrshare}/zsh/site-functions/_asdf"
51+
}
52+
53+
post_install() {
54+
cat << EOF
55+
56+
Add the following line to your .bashrc or .profile:
57+
. /opt/asdf-vm/asdf.sh
58+
59+
For more information see the official instructions [0].
60+
Especially the section titled "YOUR_SHELL & Pacman".
61+
62+
[0] https://asdf-vm.com/guide/getting-started.html#_3-install-asdf
63+
64+
EOF
65+
}

srclist

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,25 @@ pkgbase = arduino-ide-bin
521521

522522
pkgname = arduino-ide-bin
523523
---
524+
pkgbase = asdf-vm
525+
pkgver = 0.14.1
526+
pkgdesc = Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
527+
url = https://asdf-vm.com
528+
arch = any
529+
depends = curl
530+
depends = git
531+
optdepends = build-essential: Array of tools to build software
532+
optdepends = bash-completion: For completions to work in Bash
533+
optdepends = libncurses5-dev: Text-based UI library for terminal applications
534+
optdepends = libncurses-dev: Text-based UI library for terminal applications
535+
optdepends = unzip: Needed by some plugins, like Elixir
536+
license = MIT
537+
repology = project: asdf-vm
538+
source = asdf-vm-0.14.1.tar.gz::https://github.com/asdf-vm/asdf/archive/v0.14.1.tar.gz
539+
sha256sums = 308a7f2e1eb551e435458974fbe37dcef1c940e961ad40e47ae78cabc154543e
540+
541+
pkgname = asdf-vm
542+
---
524543
pkgbase = aseprite
525544
pkgver = 1.3.9
526545
pkgdesc = Animated sprite editor & pixel art tool

0 commit comments

Comments
 (0)