1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/onefetch/APKBUILD
2020-05-31 12:21:19 -03:00

27 lines
742 B
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=onefetch
pkgver=2.2.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="c2fbd977657273e1a469919562f9e72f75a9d1862a7011b8b92c10cda25b79894b9ed8bc191341794a4239ae2612faaacbf9f4ea5cb37820c6d06c919dcd1c0e onefetch-2.2.0.tar.gz"