Date: Tuesday, April 11, 2023 @ 07:43:34
Author: alerque
Revision: 1444642
archrelease: copy trunk to community-x86_64
Added:
starship/repos/community-x86_64/PKGBUILD
(from rev 1444641, starship/trunk/PKGBUILD)
Deleted:
starship/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 131 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 68 insertions(+), 63 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-11 07:43:25 UTC (rev 1444641)
+++ PKGBUILD 2023-04-11 07:43:34 UTC (rev 1444642)
@@ -1,63 +0,0 @@
-# Maintainer: Maxime Gauduin <[email protected]>
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: Kevin Song <[email protected]>
-
-pkgname=starship
-pkgdesc='The cross-shell prompt for astronauts'
-_tag=fdd3d150545700e15d221bfd97b1d80fb34e9b50
-pkgver=1.13.1
-pkgrel=1
-arch=(x86_64)
-url=https://starship.rs/
-license=(ISC)
-depends=(
- gcc-libs
- glibc
-)
-makedepends=(
- cmake
- git
- rust
-)
-checkdepends=(python)
-optdepends=('ttf-font-nerd: Nerd Font Symbols preset')
-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 CARGO_TARGET_DIR=target
- CFLAGS+=" -ffat-lto-objects"
- cargo build \
- --release \
- --frozen \
- --manifest-path starship/Cargo.toml
-}
-
-check() {
- cargo test \
- --frozen \
- --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:
Copied: starship/repos/community-x86_64/PKGBUILD (from rev 1444641,
starship/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-11 07:43:34 UTC (rev 1444642)
@@ -0,0 +1,68 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Kevin Song <[email protected]>
+
+pkgname=starship
+pkgdesc='The cross-shell prompt for astronauts'
+pkgver=1.14.1
+_tag=145ce9605732d575bc9c0547f76d56e560043de0
+pkgrel=1
+arch=(x86_64)
+url=https://starship.rs/
+_url="https://github.com/$pkgname/$pkgname"
+license=(ISC)
+depends=(
+ gcc-libs
+ glibc
+)
+makedepends=(
+ cmake
+ git
+ rust
+)
+checkdepends=(python)
+optdepends=('ttf-font-nerd: Nerd Font Symbols preset')
+source=("git+$_url.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//'
+}
+
+_pkgver() {
+ curl -fs
https://api.github.com/repos/$pkgname/$pkgname/git/ref/tags/v$pkgver | jq -r
.object.sha
+}
+
+build() {
+ export CARGO_TARGET_DIR=target
+ CFLAGS+=" -ffat-lto-objects"
+ cargo build \
+ --release \
+ --frozen \
+ --manifest-path starship/Cargo.toml
+}
+
+check() {
+ cargo test \
+ --frozen \
+ --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: