Skip to content

Commit

Permalink
adjust check and package targets
Browse files Browse the repository at this point in the history
Signed-off-by: Will Christensen <[email protected]>
  • Loading branch information
wirewc committed Jul 17, 2023
1 parent 7d7ca0d commit 8d3b631
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions extra/deno/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# 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
Expand Down Expand Up @@ -36,20 +38,20 @@ build() {

check() {
cd $pkgname
./target/release/deno run cli/tests/testdata/run/002_hello.ts
ls -lsa
./tmp/release/deno run cli/tests/testdata/run/002_hello.ts
}

package() {
cd $pkgname
install -Dm755 target/release/deno "$pkgdir"/usr/bin/deno
install -Dm755 tmp/release/deno "$pkgdir"/usr/bin/deno

install -dm755 "$pkgdir"/usr/share/bash-completion/completions
./target/release/deno completions bash > "$pkgdir"/usr/share/bash-completion/completions/deno
./tmp/release/deno completions bash > "$pkgdir"/usr/share/bash-completion/completions/deno
install -dm755 "$pkgdir"/usr/share/zsh/site-functions
./target/release/deno completions zsh > "$pkgdir"/usr/share/zsh/site-functions/_deno
./tmp/release/deno completions zsh > "$pkgdir"/usr/share/zsh/site-functions/_deno
install -dm755 "$pkgdir"/usr/share/fish/vendor_functions.d
./target/release/deno completions fish > "$pkgdir"/usr/share/fish/vendor_functions.d/deno.fish
./tmp/release/deno completions fish > "$pkgdir"/usr/share/fish/vendor_functions.d/deno.fish

install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
}

0 comments on commit 8d3b631

Please sign in to comment.