1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/git-interactive-rebase-tool/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

39 lines
1.1 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=git-interactive-rebase-tool
pkgver=2.2.1
pkgrel=0
pkgdesc="A terminal based sequence editor for interactive rebase"
url="https://gitrebasetool.mitmaro.ca"
arch="all !s390x !riscv64" # limited by rust/cargo
license="GPL-3.0-or-later"
makedepends="cargo libgit2-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://github.com/MitMaro/git-interactive-rebase-tool/archive/$pkgver/$pkgname-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -D -m755 target/release/interactive-rebase-tool -t "$pkgdir"/usr/bin/
install -D -m 644 src/interactive-rebase-tool.1 \
"$pkgdir"/usr/share/man/man1/interactive-rebase-tool.1
}
sha512sums="
beb4e41a99ea9a1ce47de324152c146b759abe6301b46203d4f7947fb064f4ddeb6dce437c30de29a5e3a0d4aa214eaad627f068a7e3f3ae5d5db32912213b48 git-interactive-rebase-tool-2.2.1.tar.gz
"