aboutsummaryrefslogtreecommitdiffstats
path: root/community/git-interactive-rebase-tool/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/git-interactive-rebase-tool/APKBUILD')
-rw-r--r--community/git-interactive-rebase-tool/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/community/git-interactive-rebase-tool/APKBUILD b/community/git-interactive-rebase-tool/APKBUILD
new file mode 100644
index 0000000000..71365d74fb
--- /dev/null
+++ b/community/git-interactive-rebase-tool/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=git-interactive-rebase-tool
+pkgver=2.1.0
+pkgrel=0
+pkgdesc="A terminal based sequence editor for interactive rebase"
+url="https://gitrebasetool.mitmaro.ca"
+arch="all !s390x !mips64" # Missing 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
+ minimize-size.patch
+ "
+
+export LIBGIT2_SYS_USE_PKG_CONFIG=1 # use system-provided libgit2
+
+build() {
+ cargo build --release --locked
+}
+
+check() {
+ cargo test --release --locked
+}
+
+package() {
+ cargo install --locked --path . --root="$pkgdir/usr"
+ rm "$pkgdir"/usr/.crates*
+
+ 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
+b8aa6eaae78d6b7d1ad1b9a3b43268f5727b4b3a364bee0b4ca261eff5ce5e79044deb53fdd96e5c03f985b75be0671fde63068ba07996d8e5a21615e06d4d32 minimize-size.patch"