mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
simplifying build after expaning cargo target dir
This commit is contained in:
parent
135c63dc1e
commit
5e65a0628f
1 changed files with 7 additions and 8 deletions
|
@ -3,8 +3,6 @@
|
|||
|
||||
# ALARM: Will Christensen <wirwc[at]gmail.com>
|
||||
# - edit Config.toml for release codegen-units to 32, lto to false
|
||||
# - use tmp folder due to smaller ARM targets having limited swap
|
||||
# - adjust check and package to use tmp location for release
|
||||
|
||||
|
||||
pkgname=deno
|
||||
|
@ -32,26 +30,27 @@ prepare() {
|
|||
build() {
|
||||
cd $pkgname
|
||||
# For systems with less than 4.5 GB swap
|
||||
CARGO_TARGET_DIR=tmp
|
||||
CARGO_TARGET_DIR=tmp cargo install mdbook
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $pkgname
|
||||
ls -lsa
|
||||
./tmp/release/deno run cli/tests/testdata/run/002_hello.ts
|
||||
# ./tmp/release/deno run cli/tests/testdata/run/002_hello.ts
|
||||
./target/release/deno run cli/tests/testdata/run/002_hello.ts
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname
|
||||
install -Dm755 tmp/release/deno "$pkgdir"/usr/bin/deno
|
||||
install -Dm755 target/release/deno "$pkgdir"/usr/bin/deno
|
||||
|
||||
install -dm755 "$pkgdir"/usr/share/bash-completion/completions
|
||||
./tmp/release/deno completions bash > "$pkgdir"/usr/share/bash-completion/completions/deno
|
||||
./target/release/deno completions bash > "$pkgdir"/usr/share/bash-completion/completions/deno
|
||||
install -dm755 "$pkgdir"/usr/share/zsh/site-functions
|
||||
./tmp/release/deno completions zsh > "$pkgdir"/usr/share/zsh/site-functions/_deno
|
||||
./target/release/deno completions zsh > "$pkgdir"/usr/share/zsh/site-functions/_deno
|
||||
install -dm755 "$pkgdir"/usr/share/fish/vendor_functions.d
|
||||
./tmp/release/deno completions fish > "$pkgdir"/usr/share/fish/vendor_functions.d/deno.fish
|
||||
./target/release/deno completions fish > "$pkgdir"/usr/share/fish/vendor_functions.d/deno.fish
|
||||
|
||||
install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue