30 lines
831 B
Bash
30 lines
831 B
Bash
# Template file for 'volta'
|
|
pkgname=volta
|
|
version=0.8.0
|
|
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=f7cf21a875e092a69482f3ffd32e208fec7357524ca49d1d69728acf3de99c3c
|
|
|
|
pre_build() {
|
|
cargo update --package openssl-sys --precise 0.9.55
|
|
}
|
|
|
|
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
|
|
}
|