# Maintainer: Kevin Song pkgname='starship' pkgdesc='The cross-shell prompt for astronauts' pkgver='0.25.2' pkgrel='1' arch=('x86_64') url='https://starship.rs/' license=('ISC') depends=('zlib' 'gcc-libs') optdepends=('powerline-fonts: powerline symbols for terminals' 'noto-fonts-emoji: emoji support for terminals') makedepends=('rust' 'gcc') checkdepends=('rust' 'git') provides=(starship) #install="$pkgname.install" source=("https://github.com/starship/starship/archive/v${pkgver}.tar.gz") sha256sums=('6da0efef83c44906ecd74ff7be228fcfbc247450dae7865d75989e9f5d2aead5') PKGEXT='.pkg.tar.gz' build() { cd "$pkgname-$pkgver" cargo build --release --locked } check() { cd "$pkgname-$pkgver" cargo test --locked } package() { cd "$pkgname-$pkgver" install -Dm755 "target/release/starship" "$pkgdir/usr/bin/$pkgname" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }