-
-
Save orhun/344dd00a2b05806517d7624683f4ae57 to your computer and use it in GitHub Desktop.
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/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