Skip to content

Instantly share code, notes, and snippets.

@chmouel
Created Nov 29, 2022
Embed
What would you like to do?
Git trim openssl arch package fix
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 }
# 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