Date: Tuesday, August 10, 2021 @ 08:44:29 Author: alucryd Revision: 997314
archrelease: copy trunk to community-x86_64 Added: starship/repos/community-x86_64/PKGBUILD (from rev 997313, starship/trunk/PKGBUILD) Deleted: starship/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 141 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 69 insertions(+), 72 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-08-10 08:44:24 UTC (rev 997313) +++ PKGBUILD 2021-08-10 08:44:29 UTC (rev 997314) @@ -1,72 +0,0 @@ -# Maintainer: Maxime Gauduin <aluc...@archlinux.org> -# Contributor: Kevin Song <kevin....@gmail.com> - -pkgname=starship -pkgdesc='The cross-shell prompt for astronauts' -pkgver=0.56.0 -pkgrel=1 -arch=(x86_64) -url=https://starship.rs/ -license=(ISC) -depends=( - gcc-libs - glibc - libgit2.so - openssl -) -optdepends=( - 'noto-fonts-emoji: emoji support for terminals' - 'powerline-fonts: powerline symbols for terminals' -) -makedepends=( - git - rust -) -checkdepends=(python) -_tag=f64cfa6a98a5e83e5f8bb37aa6e7d547c9b23c9c -source=(git+https://github.com/starship/starship.git#tag=${_tag}) -b2sums=(SKIP) - -prepare() { - cargo fetch \ - --locked \ - --manifest-path starship/Cargo.toml -} - -pkgver() { - cd starship - git describe --tags | sed 's/^v//' -} - -build() { - cargo build \ - --release \ - --frozen \ - --features notify-rust \ - --manifest-path starship/Cargo.toml -} - -check() { - cargo test \ - --release \ - --frozen \ - --features notify-rust \ - --manifest-path starship/Cargo.toml -} - -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 -} - -# vim: ts=2 sw=2 et: Copied: starship/repos/community-x86_64/PKGBUILD (from rev 997313, starship/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-08-10 08:44:29 UTC (rev 997314) @@ -0,0 +1,69 @@ +# Maintainer: Maxime Gauduin <aluc...@archlinux.org> +# Contributor: Kevin Song <kevin....@gmail.com> + +pkgname=starship +pkgdesc='The cross-shell prompt for astronauts' +pkgver=0.56.0 +pkgrel=2 +arch=(x86_64) +url=https://starship.rs/ +license=(ISC) +depends=( + gcc-libs + glibc + libgit2.so + openssl +) +optdepends=( + 'noto-fonts-emoji: emoji support for terminals' + 'powerline-fonts: powerline symbols for terminals' +) +makedepends=( + git + rust +) +checkdepends=(python) +_tag=f64cfa6a98a5e83e5f8bb37aa6e7d547c9b23c9c +source=(git+https://github.com/starship/starship.git#tag=${_tag}) +b2sums=(SKIP) + +prepare() { + cargo fetch \ + --locked \ + --target $CARCH-unknown-linux-gnu \ + --manifest-path starship/Cargo.toml +} + +pkgver() { + cd starship + git describe --tags | sed 's/^v//' +} + +build() { + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build \ + --release \ + --frozen \ + --features notify-rust \ + --manifest-path starship/Cargo.toml +} + +check() { + export RUSTUP_TOOLCHAIN=stable + cargo test \ + --frozen \ + --features notify-rust \ + --manifest-path starship/Cargo.toml +} + +package() { + 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: