# Maintainer: Kevin Song pkgname='starship' pkgdesc='The cross-shell prompt for astronauts' pkgver='0.6.0' pkgrel='1' arch=('x86_64') url='https://starship.rs/' license=('ISC') depends=('openssl' 'zlib') makedepends=('rust') checkdepends=('rust') provides=(starship) #install="$pkgname.install" source=("https://github.com/starship/starship/archive/v${pkgver}.tar.gz") sha256sums=('eec9a9f6d694bd14f1aa1e5f4a0a88c12bc4209fe52ec8f12d9dbadbef9ea32a') 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" }