diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-06-26 03:00:32 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-06-26 03:00:32 +0000 |
commit | 8706bd163d1ebbfc67d43e6c5e071561cc71292f (patch) | |
tree | 0ac5ffacca21698668923090e8c4aee96148cfec /user/cbindgen/APKBUILD | |
parent | 6f8b0937d3f625ffa86c6ff2eef82ae49c2bade8 (diff) | |
parent | b2bafb4f5a83afc6f7abb23d4816ffe2a26109a3 (diff) | |
download | packages-8706bd163d1ebbfc67d43e6c5e071561cc71292f.tar.gz packages-8706bd163d1ebbfc67d43e6c5e071561cc71292f.tar.bz2 packages-8706bd163d1ebbfc67d43e6c5e071561cc71292f.tar.xz packages-8706bd163d1ebbfc67d43e6c5e071561cc71292f.zip |
Merge branch 'rust-utils' into 'master'
Rust utils (ripgrep, xsv, zola)
Some new rust utilities that exercise @sysvinit's cargo-fu
See merge request !250
Diffstat (limited to 'user/cbindgen/APKBUILD')
-rw-r--r-- | user/cbindgen/APKBUILD | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/user/cbindgen/APKBUILD b/user/cbindgen/APKBUILD index 6a8530b95..56652dda1 100644 --- a/user/cbindgen/APKBUILD +++ b/user/cbindgen/APKBUILD @@ -26,16 +26,14 @@ cargo_deps="$pkgname-$pkgver ansi_term-0.11.0 atty-0.2.11 autocfg-0.1.4 vec_map-0.8.1 winapi-0.3.7 winapi-i686-pc-windows-gnu-0.4.0 winapi-x86_64-pc-windows-gnu-0.4.0" -for _dep in $cargo_deps; do - _dep_name=${_dep%-*} - _dep_ver=${_dep##*-} - source="$source $_dep.tar.gz::https://crates.io/api/v1/crates/$_dep_name/$_dep_ver/download" -done +source="$source $(echo $cargo_deps | sed -E 's#([[:graph:]]+)-([0-9.]+(-(alpha|beta|rc)[0-9.]+)?)#&.tar.gz::https://crates.io/api/v1/crates/\1/\2/download#g')" prepare() { export CARGO_HOME="$srcdir/cargo-home" export CARGO_VENDOR="$CARGO_HOME/adelie" + (builddir=$srcdir; default_prepare) + mkdir -p "$CARGO_VENDOR" cat <<- EOF > "$CARGO_HOME/config" [source.adelie] @@ -59,13 +57,11 @@ prepare() { } build() { - cd "$builddir" export CARGO_HOME="$srcdir/cargo-home" cargo build -j $JOBS --release } check() { - cd "$builddir" export CARGO_HOME="$srcdir/cargo-home" # Failing tests @@ -74,7 +70,6 @@ check() { } package() { - cd "$builddir" export CARGO_HOME="$srcdir/cargo-home" cargo install --path . --root="$pkgdir"/usr rm "$pkgdir"/usr/.crates.toml |