aboutsummaryrefslogtreecommitdiffstats
path: root/testing/onefetch/APKBUILD
blob: 70792206e7ce8861a753d252f47dbdb48da49abf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=onefetch
pkgver=2.5.0
pkgrel=0
pkgdesc="Git repository summary on your terminal"
url="https://github.com/o2sh/onefetch"
arch="all !s390x !mips !mips64"
license="MIT"
makedepends="cargo libgit2-dev zlib-dev"
source="$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/onefetch/$pkgver/download"

export LIBGIT2_SYS_USE_PKG_CONFIG=1

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm0755 target/release/onefetch "$pkgdir"/usr/bin/onefetch
}

sha512sums="082c17b09ece3bfb8e217f195a83fa38d868e9e31ff4722b8774430dbf19148b82e11c5cd12e1a69d855652bce678cd677858e630b29ee89cb57244d16f1fb43  onefetch-2.5.0.tar.gz"