From 3bf3c5aff4f932ed53b929366be697f1567db474 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Thu, 31 Aug 2023 13:53:15 +0200 Subject: [PATCH] git-cliff: update to 1.3.0 --- srcpkgs/git-cliff/patches/downgrade-git2.patch | 13 +++++++++++++ srcpkgs/git-cliff/template | 8 ++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/git-cliff/patches/downgrade-git2.patch diff --git a/srcpkgs/git-cliff/patches/downgrade-git2.patch b/srcpkgs/git-cliff/patches/downgrade-git2.patch new file mode 100644 index 00000000000000..dd5a3ece05c8ec --- /dev/null +++ b/srcpkgs/git-cliff/patches/downgrade-git2.patch @@ -0,0 +1,13 @@ +diff --git a/git-cliff-core/Cargo.toml b/git-cliff-core/Cargo.toml +index 2cab8ec..66b5a8f 100644 +--- a/git-cliff-core/Cargo.toml ++++ b/git-cliff-core/Cargo.toml +@@ -28,7 +28,7 @@ toml = "0.7.6" + lazy-regex = "3.0.1" + + [dependencies.git2] +-version = "0.18.0" ++version = "0.17" + default-features = false + optional = true + diff --git a/srcpkgs/git-cliff/template b/srcpkgs/git-cliff/template index c957b30cb0613d..c879921e761dd4 100644 --- a/srcpkgs/git-cliff/template +++ b/srcpkgs/git-cliff/template @@ -1,6 +1,6 @@ # Template file for 'git-cliff' pkgname=git-cliff -version=1.2.0 +version=1.3.0 revision=1 archs="x86_64* i686* aarch64* arm*" # ring build_style=cargo @@ -15,7 +15,11 @@ license="GPL-3.0-only" homepage="https://github.com/orhun/git-cliff" changelog="https://raw.githubusercontent.com/orhun/git-cliff/main/CHANGELOG.md" distfiles="https://github.com/orhun/git-cliff/archive/refs/tags/v${version}.tar.gz" -checksum=10db6fd8fe777f384de2e00336b1cb664095a2f068526f8ace4e7944a7ada270 +checksum=3c130ebbd3121d3994ecd1ff1062220de610c7491ada02f9d421c8869674c386 + +post_patch() { + cargo update --package git2@0.18.0 --precise 0.17.2 +} post_install() { vdoc README.md