Skip to content

Instantly share code, notes, and snippets.

@orhun
Created December 26, 2021 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orhun/344dd00a2b05806517d7624683f4ae57 to your computer and use it in GitHub Desktop.
Save orhun/344dd00a2b05806517d7624683f4ae57 to your computer and use it in GitHub Desktop.
diff --git a/PKGBUILD b/PKGBUILD
index e2c3371..7a37703 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,8 @@ pkgdesc="A cargo subcommand to fetch the source code of a Rust crate"
arch=('x86_64')
url="https://github.com/JanLikar/cargo-clone"
license=('APACHE' 'MIT')
-makedepends=('cargo')
+depends=('libgit2' 'curl')
+makedepends=('cargo' 'libssh2')
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha256sums=('c4f88e55208ca93c21a8fdd1cd2be16004e1e2ab4ca4aa3d57acb832e749fdd9')
@@ -19,6 +20,7 @@ build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
+ export LIBSSH2_SYS_USE_PKG_CONFIG=1
cargo build --frozen --release --all-features
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment