New package: volta-0.7.1

Closes: #18756 [via git-merge-pr]
This commit is contained in:
Alex Lohr 2020-01-21 15:49:52 +01:00 committed by Toyam Cox
parent d9c851f62f
commit 58f4d59eb8
2 changed files with 32 additions and 0 deletions

30
srcpkgs/volta/template Normal file
View File

@ -0,0 +1,30 @@
# Template file for 'volta'
pkgname=volta
version=0.7.1
revision=1
archs="x86_64 i686" # Due to volta pulling pre-built binaries later. Evil.
build_helper="rust"
hostmakedepends="cargo pkg-config"
makedepends="libressl-devel"
short_desc="JavaScript tool version sync helper"
maintainer="Alex Lohr <alex.lohr@logmein.com>"
license="BSD-2-Clause"
homepage="https://volta.sh/"
distfiles="https://github.com/volta-cli/volta/archive/v${version}.tar.gz"
checksum=e53a07e167bb64103f36901423f5a377a2ea89ecfdd7a1343e69d659f99f9c1b
pre_build() {
cargo update --package openssl-sys --precise 0.9.53
}
do_build() {
cargo build --release --target ${RUST_TARGET}
}
do_install() {
vlicense LICENSE
vbin target/${RUST_TARGET}/release/volta
vbin target/${RUST_TARGET}/release/volta-shim
vbin target/${RUST_TARGET}/release/volta-migrate
}

2
srcpkgs/volta/update Normal file
View File

@ -0,0 +1,2 @@
site="https://github.com/volta-cli/volta/releases"
pattern="\bv(\d+\.\d+\.\d+)\b"