aboutsummaryrefslogtreecommitdiffstats
path: root/testing/onefetch/APKBUILD
blob: 65d969f291a1abc6ea9422d6dedca1d468e64f95 (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.4.0
pkgrel=1
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="08ebc613c7254e887ac4345f7446fb99bebc419d70cbed59ee31f9e3cc7fe43702da784a184ab6290d45d6f7384047cec720ef26fbdb3cebf8d05d6a8e723307  onefetch-2.4.0.tar.gz"