mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
this is a million times faster new only in rust 1.68, and fails on older versions, but we have only latest in aports and don't support anything else, so it's okay.
46 lines
1.1 KiB
Text
46 lines
1.1 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=gitui
|
|
pkgver=0.22.1
|
|
pkgrel=0
|
|
pkgdesc="Blazing fast terminal client for git"
|
|
url="https://github.com/extrawurst/gitui"
|
|
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
|
|
license="MIT"
|
|
makedepends="
|
|
cargo
|
|
libgit2-dev
|
|
oniguruma-dev
|
|
openssl-dev
|
|
zlib-dev
|
|
"
|
|
source="https://github.com/extrawurst/gitui/archive/v$pkgver/gitui-$pkgver.tar.gz"
|
|
|
|
export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2
|
|
export RUSTONIG_DYNAMIC_LIBONIG=1 # use system libonig
|
|
|
|
_cargo_opts="--frozen --no-default-features --features regex-onig"
|
|
|
|
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build $_cargo_opts --release
|
|
}
|
|
|
|
check() {
|
|
cargo test $_cargo_opts
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 target/release/gitui "$pkgdir"/usr/bin/gitui
|
|
}
|
|
|
|
sha512sums="
|
|
dd695edd4ee7c41209e3e109c4d127a4aecc65562912c82bc1438f1cbd2704ae5faf64a8500875bb65572860c79292095e57c2c59388ae944fb5c34f68c67fb5 gitui-0.22.1.tar.gz
|
|
"
|