Created
November 29, 2022 11:51
-
-
Save chmouel/b7dbab1bbe7c923036b4bebee4b49f33 to your computer and use it in GitHub Desktop.
Git trim openssl arch package fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Cargo.toml b/Cargo.toml | |
index 1560888..ae15b28 100644 | |
--- a/Cargo.toml | |
+++ b/Cargo.toml | |
@@ -36,6 +36,7 @@ rayon = "1.5.2" | |
thiserror = "1.0.30" | |
crossbeam-channel = "0.5.4" | |
textwrap = { version = "0.15.0", features = ["terminal_size"] } | |
+openssl = { version = "0.10.43", features = ["vendored"] } | |
man = { version = "0.3.0", optional = true } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Wesley Moore <wes@wezm.net> | |
pkgname=git-trim | |
pkgver=5686c48 | |
pkgrel=2 | |
pkgdesc='Trims your git remote tracking branches' | |
arch=('i686' 'x86_64') | |
url="https://github.com/foriequal0/git-trim" | |
license=('MIT') | |
depends=('libgit2') | |
makedepends=('cargo') | |
source=("git+$url" "openssl-vendored.patch") | |
sha256sums=('SKIP' 'SKIP') | |
build() { | |
cd "$pkgname" | |
patch --forward --strip=1 --input="${srcdir}/openssl-vendored.patch" | |
LIBGIT2_SYS_USE_PKG_CONFIG=1 cargo build --release | |
} | |
package() { | |
install -Dm755 "$srcdir/$pkgname/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" | |
install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment