Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ apx-git
ardour-git
arduino-cli-bin
arduino-ide-bin
asdf-vm
aseprite
awesome-git
aws-cli-v2-bin
Expand Down
18 changes: 18 additions & 0 deletions packages/asdf-vm/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pkgbase = asdf-vm
pkgver = 0.14.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
repology = project: asdf-vm
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
65 changes: 65 additions & 0 deletions packages/asdf-vm/asdf-vm.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
pkgname=asdf-vm
pkgver=0.14.1
pkgdesc='Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more'
repology=("project: ${pkgname}")
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 lib asdf.elv asdf.fish asdf.nu asdf.sh defaults help.txt version.txt "${dst}"

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
}
19 changes: 19 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,25 @@ pkgbase = arduino-ide-bin

pkgname = arduino-ide-bin
---
pkgbase = asdf-vm
pkgver = 0.14.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
repology = project: asdf-vm
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
---
pkgbase = aseprite
pkgver = 1.3.9
pkgdesc = Animated sprite editor & pixel art tool
Expand Down
Loading