[arch-commits] Commit in starship/trunk (PKGBUILD)
Maxime Gauduin
alucryd at gemini.archlinux.org
Tue Aug 10 08:44:24 UTC 2021
Date: Tuesday, August 10, 2021 @ 08:44:24
Author: alucryd
Revision: 997313
upgpkg: starship 0.56.0-2
Modified:
starship/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-08-10 07:33:19 UTC (rev 997312)
+++ PKGBUILD 2021-08-10 08:44:24 UTC (rev 997313)
@@ -4,7 +4,7 @@
pkgname=starship
pkgdesc='The cross-shell prompt for astronauts'
pkgver=0.56.0
-pkgrel=1
+pkgrel=2
arch=(x86_64)
url=https://starship.rs/
license=(ISC)
@@ -30,6 +30,7 @@
prepare() {
cargo fetch \
--locked \
+ --target $CARCH-unknown-linux-gnu \
--manifest-path starship/Cargo.toml
}
@@ -39,6 +40,8 @@
}
build() {
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
cargo build \
--release \
--frozen \
@@ -47,8 +50,8 @@
}
check() {
+ export RUSTUP_TOOLCHAIN=stable
cargo test \
- --release \
--frozen \
--features notify-rust \
--manifest-path starship/Cargo.toml
@@ -55,18 +58,12 @@
}
package() {
- cargo install \
- --frozen \
- --features notify-rust \
- --offline \
- --no-track \
- --path starship \
- --root "${pkgdir}"/usr
- install -Dm 644 starship/LICENSE -t "${pkgdir}"/usr/share/licenses/starship/
- install -dm 755 "${pkgdir}"/usr/share/{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}/
- ./starship/target/release/starship completions bash > "${pkgdir}"/usr/share/bash-completion/completions/starship
- ./starship/target/release/starship completions fish > "${pkgdir}"/usr/share/fish/vendor_completions.d/starship.fish
- ./starship/target/release/starship completions zsh > "${pkgdir}"/usr/share/zsh/site-functions/_starship
+ install -Dm 755 target/release/starship -t "${pkgdir}"/usr/bin/
+ install -Dm 644 starship/LICENSE -t "${pkgdir}"/usr/share/licenses/starship/
+ install -dm 755 "${pkgdir}"/usr/share/{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}/
+ ./target/release/starship completions bash > "${pkgdir}"/usr/share/bash-completion/completions/starship
+ ./target/release/starship completions fish > "${pkgdir}"/usr/share/fish/vendor_completions.d/starship.fish
+ ./target/release/starship completions zsh > "${pkgdir}"/usr/share/zsh/site-functions/_starship
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list