# Template file for 'cargo-c'
pkgname=cargo-c
version=0.10.5
revision=1
build_style=cargo
hostmakedepends="pkg-config zlib-devel"
makedepends="openssl-devel libssh2-devel zlib-devel libcurl-devel libgit2-1.8-devel sqlite-devel"
short_desc="Build and install C-compatible rust libraries"
maintainer="oreo639 <oreo6391@gmail.com>"
license="MIT"
homepage="https://crates.io/crates/cargo-c"
distfiles="https://github.com/lu-zero/cargo-c/archive/v${version}.tar.gz
 https://github.com/lu-zero/cargo-c/releases/download/v${version}/Cargo.lock>Cargo-${version}.lock"
checksum="3f131a6a647851a617a87daaaf777a9e50817957be0af29806615613e98efc8a
 2b5660aabd70f6a12390a19bcdeacc585c418d24aaa6855bd396a1c3a5684320"
skip_extraction="Cargo-${version}.lock"

post_extract() {
	vsrccopy Cargo-${version}.lock .
	mv Cargo-${version}.lock Cargo.lock
}

post_install() {
	vlicense LICENSE
}
