aboutsummaryrefslogtreecommitdiffstats
path: root/testing/starship/APKBUILD
blob: 222dd5f4ec6f12174564b0f935fa70d710cf5e0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=starship
pkgver=0.20.1
pkgrel=0
pkgdesc="Cross-shell prompt for astronauts"
options="!check" # All tests hardcode $HOME
url="https://starship.rs/"
arch="all !s390x"
license="ISC"
depends="font-noto-emoji"
makedepends="cargo zlib-dev libgit2-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/starship/starship/archive/v$pkgver.tar.gz"

export LIBGIT2_SYS_USE_PKG_CONFIG=1 # Use system libgit2

build() {
	cargo build --release
}

package() {
	install -Dm0755 target/release/starship "$pkgdir"/usr/bin/starship
}
sha512sums="b452893df77b4b4190aa85c2cd97caa47ce78fbf5439018bfa9fcc9f15b7b4e6053162a41f2418805a12ad6ba9d6352327a2b1360e129bbde5c9b087c3d4345e  starship-0.20.1.tar.gz"