# Template file for 'cargo-c'
pkgname=cargo-c
version=0.10.19
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="openssl-devel libssh2-devel libcurl-devel libgit2-1.9-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="4136fbb1c25b1afdf1aaf473d00e532b73bbe02c7c53cb44965aff41ed328d20
 f02e3b1fc5e612c41bb75d1af25b0a231e1aae7cb0279a0d71bd216015abc919"
skip_extraction="Cargo-${version}.lock"

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

post_install() {
	vlicense LICENSE
}
