1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/gitui/APKBUILD
psykose 39f6fef713 */*: cargo fetch with --target
this does not download deps that won't be used for the default build
target (the ctarget we are building for implicitly).
this makes quite a few fetches faster.. because a ton of crates download
a 10mb "windows-sys" that is never used, amongst other things.

maybe breaks a thing or two.
2023-02-11 16:56:41 +01:00

44 lines
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"
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
"