From 366142efd4e4fc7b0f76c4394cbe57d66cd4203f Mon Sep 17 00:00:00 2001 From: Alex Lohr Date: Tue, 21 Jan 2020 15:49:52 +0100 Subject: [PATCH] New package: volta-0.7.0 --- .../patches/openssl-sys-fix-version.patch | 11 +++++++ srcpkgs/volta/template | 31 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 srcpkgs/volta/patches/openssl-sys-fix-version.patch create mode 100644 srcpkgs/volta/template diff --git a/srcpkgs/volta/patches/openssl-sys-fix-version.patch b/srcpkgs/volta/patches/openssl-sys-fix-version.patch new file mode 100644 index 00000000000..7f89a2a632f --- /dev/null +++ b/srcpkgs/volta/patches/openssl-sys-fix-version.patch @@ -0,0 +1,11 @@ +--- Cargo.toml ++++ Cargo.toml +@@ -39,6 +39,7 @@ structopt = "0.2.14" + rand = "0.5" + cfg-if = "0.1" + mockito = { version = "0.14.0", optional = true } ++openssl-sys = { version = "0.9.53" } + test-support = { path = "crates/test-support" } + textwrap = "0.11.0" + which = "2.0.1" + \ No newline at end of file diff --git a/srcpkgs/volta/template b/srcpkgs/volta/template new file mode 100644 index 00000000000..7a9280dd96a --- /dev/null +++ b/srcpkgs/volta/template @@ -0,0 +1,31 @@ +# Template file for 'volta' +pkgname=volta +version=0.7.0 +revision=1 +build_helper="rust" +short_desc="JavaScript tool version sync helper" +maintainer="Alex Lohr " +license="BSD-2-Clause" +homepage="https://volta.sh/" +hostmakedepends="cargo pkg-config" +makedepends="libressl-devel" +depends="" +distfiles="https://github.com/volta-cli/${pkgname}/archive/v${version}.tar.gz" +checksum=74b97e0488d53b570be745e5380c829ddb59fbc04d0f9ec2e40af612746a05d6 + +do_build() { + cargo build --release --target ${RUST_TARGET} +} + +do_install() { + vinstall target/${RUST_TARGET}/release/volta 755 usr/bin + vinstall target/${RUST_TARGET}/release/volta-shim 755 usr/bin + vinstall target/${RUST_TARGET}/release/volta-migrate 755 usr/bin + + vmkdir etc/volta 755 + vinstall shell/unix/load.bash 755 etc/volta + vinstall shell/unix/load.sh 755 etc/volta + vinstall shell/unix/load.fish 755 etc/volta + + echo "To use volta automatically, you need to source the correct shell script in /etc/volta" +} \ No newline at end of file