void-packages/srcpkgs/cargo-c/template

25 lines
752 B
Bash

# Template file for 'cargo-c'
pkgname=cargo-c
version=0.9.18
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="openssl-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"
checksum="1839c3e31f19eae346c47dcf2084bda80d875a8bb01fb2c55489802c7793c2d8
7c4ebb1140e3b4452f7cda6027413fb29449b85c9c35d3f5df3dbed36287ac8c"
skip_extraction="Cargo.lock"
post_extract() {
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Cargo.lock ${wrksrc}
}
post_install() {
vlicense LICENSE
}