Skip to content
Snippets Groups Projects
Commit 1304032a authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

community/git-interactive-rebase-tool: upgrade to 2.2.0

parent 23bc6b26
No related branches found
No related tags found
No related merge requests found
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=git-interactive-rebase-tool
pkgver=2.1.0
pkgrel=3
pkgver=2.2.0
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
$pkgname-upgrade-git2.patch::https://github.com/MitMaro/git-interactive-rebase-tool/commit/f4d3026f23118d29a263bbca6c83f963e76c34c4.patch
minimize-size.patch
"
source="https://github.com/MitMaro/git-interactive-rebase-tool/archive/$pkgver/$pkgname-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO="true"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
export CARGO_PROFILE_RELEASE_PANIC="abort"
prepare() {
default_prepare
......@@ -29,15 +31,12 @@ check() {
}
package() {
cargo install --frozen --offline --path . --root="$pkgdir/usr"
rm "$pkgdir"/usr/.crates*
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="
488bf4206f3fa59a6c68a78ddf7b50c05b4b27fe922ad69575a23c34f9457a51fcd8c3caaee133f73c226129edc14b2dd6192532c9dedf64ea68bf19d90f10a6 git-interactive-rebase-tool-2.1.0.tar.gz
12a3c9d341ae7f5d6984cb49903d854e59976ba11240a39170ef06691b8d98fe21c1900cb43184a04a8fac84114e4780dbd54f27e298d1536e41698d73747b2b git-interactive-rebase-tool-upgrade-git2.patch
b8aa6eaae78d6b7d1ad1b9a3b43268f5727b4b3a364bee0b4ca261eff5ce5e79044deb53fdd96e5c03f985b75be0671fde63068ba07996d8e5a21615e06d4d32 minimize-size.patch
4aec9b5e7462bc95b7e45e8aae195537a9c8ae37c2bac07370cbe95979fa81d5f48ab3b130d9613517498b961e7755c0925033d7cbeec560b394756686a4da61 git-interactive-rebase-tool-2.2.0.tar.gz
"
Minimize size of the resulting binary.
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -62,3 +62,9 @@
["CHANGELOG.md", "usr/share/doc/interactive-rebase-tool/", "644"],
["src/interactive-rebase-tool.1", "usr/share/man/man1/interactive-rebase-tool.1", "644"]
]
+
+[profile.release]
+codegen-units = 1
+lto = true
+opt-level = "z"
+panic = "abort"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment